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 labeled Array glow-up 🌈
  • module Bytes : (module BytesLabels) β€” labeled Bytes, slay πŸ’œ
  • module List : (module ListLabels) β€” labeled List, obviously πŸŽ€
  • module String : (module StringLabels) β€” labeled String, 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