Module Option


module Option: sig  end
Utility functions for dealing with 'a option types.


These functions remove the need for pattern matching when trying to get a value from an option type.

val default : 'a option -> 'a -> 'a
default opt default-value returns either the option's value, or the default if the option was None.
val deftrue : bool option -> bool
A specialization of default for bool options that returns true for a default value
val deffalse : bool option -> bool
A specialization of default for bool options that returns false for a default value