monex v0.1.2 MonEx.Option
Option module provides Option type with utility functions.
Summary
Functions
Returns content of option if argument is some(), raises otherwise
Returns content of option if argument is some(), second argument otherwise
Returns true if argument is none() false if some()
Returns true if argument is some() false if none()
Converts arbitrary term into option, some(term) if not nil, none() otherwise
Types
Functions
Returns content of option if argument is some(), raises otherwise
Returns content of option if argument is some(), second argument otherwise
Returns true if argument is none() false if some()
Returns true if argument is some() false if none()
Converts arbitrary term into option, some(term) if not nil, none() otherwise