| Supertypes | |
|---|---|
| Self type |
The names of the product elements
| Inherited from | Mirror |
|---|
The name of the type
| Inherited from | Mirror |
|---|
An Option factory which creates Some(x) if the argument is not null, and None if it is null.
| Value parameters |
|
|---|---|
| Returns | Some(value) if value != null, None if value == null |
An Option factory which returns None in a manner consistent with the collections hierarchy.
Unless a given condition is true, this will evaluate the a argument and return Some(a). Otherwise, a is not evaluated and None is returned.
When a given condition is true, evaluates the a argument and returns Some(a). When the condition is false, a is not evaluated and None is returned.
An implicit conversion that converts an option to an iterable value
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/Option$.html