MoreLabels(3)

πŸ’– MoreLabels(3) β€” the OCaml library's extra-labeled bestie πŸ’–

okay so real talk: this is the MoreLabels page from the OCaml library, and it's lowkey one of the most useful little meta-modules out there. buckle up, bestie πŸŽ€


✨ NAME ✨

MoreLabels β€” Extra labeled libraries. that's it, that's the whole vibe πŸ’…


πŸ¦‹ Module πŸ¦‹

the module is, literally, Module MoreLabels. iconic, no notes πŸ‘‘


🌸 Documentation 🌸

so here's the tea β˜• β€” the module signature is exactly this, and it's giving "I contain multitudes":

Module MoreLabels
 : sig end

Extra labeled libraries. fr fr, that's what it says.

This meta-module provides labelized versions of the MoreLabels.Hashtbl , MoreLabels.Map and MoreLabels.Set modules. β€” a meta-module!! she's a package deal, she bundles up three whole modules and slaps labels on them 🌈

and here's the intended way to use her, and this is important so pay attention πŸ™ˆ:

This module is intended to be used through open MoreLabels which replaces MoreLabels.Hashtbl , MoreLabels.Map , and MoreLabels.Set with their labeled counterparts.

so you open her once and she just swaps the plain ones out for the labeled ones. effortless. main character energy. ✨

For example:

open MoreLabels

Hashtbl.iter ~f:(fun ~key ~data -> g key data) table

look at those ~key and ~data labels just ✨ existing ✨ β€” that's the whole point, bestie. Hashtbl.iter taking ~f with a function that itself takes ~key and ~data. chef's kiss 🫢

and then she's got her three little submodules:

  • module Hashtbl : sig end β€” the labeled hashtable, she's gorgeous πŸ’–
  • module Map : sig end β€” the labeled map, obsessed πŸ—ΊοΈ
  • module Set : sig end β€” the labeled set, a whole queen πŸ‘‘

all three are just sig end in this page's rendering, so if you want the actual contents you gotta go read their own pages, iykyk 🧚


πŸŽ€ that's a wrap πŸŽ€

no exit statuses, no environment variables, no flags to memorise β€” she's just a meta-module doing meta-module things πŸ’œ this page came to you from OCamldoc (version stitched into the footer, dated 2026-06-22), so yeah, that's the source and the date, mwah, bye bestie πŸ˜­πŸ’•

πŸ“¦ where this page comes from