Filters out value if it doesn't fulfill predicate. A Some value then becomes None
Performs the operation on the given value, then return the option again. This is unlike the Scala API, where Unit is returned. here it allows for additional chaining of mappings etc.
Gets get value if exists, otherwise throws exception.
Gets the value if exists, otherwise returns inserted value.
Check if a value exists
Maps the contained value if exists using the given function.
Checks if a value doesn't exist.
Generated using TypeDoc
Represents a value that might or might not be. The API is inspired from Option in scala. You operate on this type like you would on an array, allowing you to chain possible mappings operations that will happen if a value is defined (of type Some), and will not happen if the value is undefined (of type None).