Misc.Stdlib.Option(3)
π Misc.Stdlib.Option(3) β OCaml library manual π
okay bestie, welcome to the Misc.Stdlib.Option(3) page from the OCaml library manual. This is the little corner where Option gets some extra sparkle. β¨
π NAME π
Misc.Stdlib.Option β Extensions to the Option module π
π§ MODULE π§
Module Misc.Stdlib.Option
π DOCUMENTATION π
Here's the module situation, no cap:
Module Option
: sig end
π Extensions to the Option module π
The type is literally:
type 'a t = 'a option
And there's one value, print, with this exact signature:
val print : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t
-> unit
So yeah: print wants a printer function shaped like (Format.formatter -> 'a -> unit), then a Format.formatter, then an 'a t, and it hands back unit. That's the whole menu, bestie. π«Ά
β¨ Cute sign-off: this page comes from OCamldoc, dated2026-06-22, and it's theMisc.Stdlib.Option(3)manual page in the OCaml library manual. Bye bestie, go slay some option values! π π
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms