StdLabels(3)
π NAME π
StdLabels β the standard labeled libraries, bestie β¨
π Module π
Module StdLabels β that's the whole vibe, no cap.
πΈ Documentation πΈ
Okay so picture this: Module StdLabels with signature : sig end β yes, the signature is literally just sig end, and honestly? Iconic minimalism. π
This is the standard labeled libraries meta-module, and it's giving very much "one module to rule them all" energy. What it does is hand you versions of the StdLabels.Array, StdLabels.Bytes, StdLabels.List and StdLabels.String modules where the function arguments are systematically labeled β every single one, consistently, fr fr. π¦
The intended move β and the docs are very clear about this β is to open StdLabels at the top of your source files. Like, right at the top. Main character placement only. π
Here's the example, copied exactly because we do not play with code:
open StdLabels
let to_upper = String.map ~f:Char.uppercase_ascii
let seq len = List.init ~f:(fun i -> i) ~len
let everything = Array.create_matrix ~dimx:42 ~dimy:42 42
See how every argument has a label? ~f, ~len, ~dimx, ~dimy β that's the whole point, and it ate. π₯
And here are the submodules it's packing, each one a certified labeled baddie:
module Array : (module ArrayLabels)β the labeledArrayglow-up πmodule Bytes : (module BytesLabels)β labeledBytes, slay πmodule List : (module ListLabels)β labeledList, obviously πmodule String : (module StringLabels)β labeledString, periodt β
And that's the whole page, bestie β no hidden lore, no extra caveats, just labels on labels. π«Ά
Cute little sign-off from the footer: this lovely page comes courtesy of OCamldoc, dated 2026-06-22, and it's the StdLabels(3) manual page. Go label your arguments. πβ¨
π¦ 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