- none
Create a none with the type of example. This saves some nasty typing, e.g.
Option.none() vs.
- some
Create a new some.
- option
Wrap an arbitrary object into an option with null being mapped to none.
- getOrElse
Get the contained value in case of being "some" or return the result of
evaluating none otherwise.
- get
Get the contained value or throw an exception.
- isSome
- map
- bind
Monadic bind operation m a -> (a -> m b) -> m b.
- fold
- toOpt
- <init>
- error
Use this function in getOrElse if it is an error being none.