Wraps the given object in an Option, which resolves to None if the given object reference is null.
Wraps the given object in an Option, which resolves to None if the given object reference is null.
optionally, the wrapped object
Converts a List[Option[T]] to an Option[List[T]]
Converts a List[Option[T]] to an Option[List[T]]
Some[List[T]] if all elements are some, None otherwise.
Wraps the given object in a Some.
Wraps the given object in a Some.
NOTE: calling .some
on a null value will throw an IllegalArgumentException. Therefore, only use .some
when
you absolutely know that the parameter is a constant and always will be.
Overall, prefer .opt
for null safety.
the wrapped object
(richListOption: StringAdd).self
(richListOption: StringFormat).self
(richListOption: ArrowAssoc[RichListOption[T]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(richListOption: Ensuring[RichListOption[T]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Convenience methods for working with List[Option[A]]