monex v0.1.5 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()
Returns option if argument is some(), second argument wrapped in some otherwise
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()
Returns option if argument is some(), second argument wrapped in some otherwise
Converts arbitrary term into option, some(term) if not nil, none() otherwise