Skip to content

Module Stdlib.MoreLabels

Extra labeled libraries.

This meta-module provides labelized versions of the Hashtbl, Map and Set modules.

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

For example:

ocaml
  open MoreLabels

  Hashtbl.iter ~f:(fun ~key ~data -> g key data) table
ocaml
module Hashtbl : sig ... end
reasonml
module Hashtbl: { ... };

Hash tables and hash functions.

ocaml
module Map : sig ... end
reasonml
module Map: { ... };

Association tables over ordered types.

ocaml
module Set : sig ... end
reasonml
module Set: { ... };

Sets over ordered types.