An Option factory which creates Some(x) if the argument is not null, and None if it is null.
An Option factory which creates Some(x) if the argument is not null, and None if it is null.
the value
Some(value) if value != null, None if value == null
An Option factory which returnsNone in a manner consistent with the collections hierarchy.
An Option factory which returnsNone in a manner consistent with the collections hierarchy.
Unless a given condition is true, this will evaluate thea argument and return Some(a).
Unless a given condition is true, this will evaluate thea argument and return Some(a). Otherwise,a is not evaluated and None is returned.
When a given condition is true, evaluates thea argument and returns Some(a).
When a given condition is true, evaluates thea 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