compiler-libs.common
Stdlib.Option
compiler-libs.bytecomp
compiler-libs.optcomp
compiler-libs.toplevel
dynlink
eval
jit
runtime_events
stdlib
stdlib_alpha
stdlib_beta
stdlib_stable
stdlib_upstream_compatible
str
threads
unix
type 'a t = 'a option
val first_some : 'a option -> (unit -> 'a option) -> 'a option
val print : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
val map_sharing : ('a -> 'a) -> 'a option -> 'a option
map_sharing f a is map f a. If a is None or it is Some e and f e == e then map_sharing f a == a.
map_sharing f a
map f a
a
None
Some e
f e == e
map_sharing f a == a