Stdune.OptionOptional values
module O : sig ... endval iter : 'a t -> f:('a -> unit) -> unitval forall : 'a t -> f:('a -> bool) -> boolval value : 'a t -> default:'a -> 'aval value_exn : 'a t -> 'aval some : 'a -> 'a tval some_if : bool -> 'a -> 'a tval is_some : _ t -> boolval is_none : _ t -> boolval to_list : 'a t -> 'a listval hash : ('a -> int) -> 'a t -> intfirst_some t1 t2 returns t1 if it has an underlying value, or t2 otherwise.
val compare : ('a -> 'a -> Ordering.t) -> 'a t -> 'a t -> Ordering.tmodule List : sig ... endmodule Unboxed : sig ... endA poor man's unboxed option type. The value stored must not be immediate, unless it is a non-negative integer. In particular, unboxed options cannot be nested.