Module Stdune.OptionSource
Optional values
Sourcetype 'a t = 'a option = | None| Some of 'a
Sourceval map : 'a t -> f:('a -> 'b) -> 'b t Sourceval bind : 'a t -> f:('a -> 'b t) -> 'b t Sourceval iter : 'a t -> f:('a -> unit) -> unit Sourceval forall : 'a t -> f:('a -> bool) -> bool Sourceval value : 'a t -> default:'a -> 'a Sourceval some_if : bool -> 'a -> 'a t Sourceval to_list : 'a t -> 'a list Sourceval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool Sourceval hash : ('a -> int) -> 'a t -> int Sourceval try_with : (unit -> 'a) -> 'a option