Unit(3)

Unit(3) πŸ’–

okay so this is the OCaml library manual page for Unit(3) β€” yes, the manual name is literally OCaml library, bestie. it's giving tiny module, huge main character energy. ✨

🌸 NAME

Unit β€” unit values. literally just unit values, and that's the whole vibe. πŸ’…

🧚 Module

Module Unit β€” that's the module, bestie. that's it. no cap. 🫢

πŸŽ€ Documentation

Module Unit
 : sig end

Unit values. Since 4.08 β€” an iconic era, lowkey. πŸ¦‹

πŸ“ The unit type

type t = unit =
 | ()

the unit type. the constructor () is included here so that it has a path, but it is not intended to be used in user-defined data types β€” so don't get cute with it in your own data types, bestie. πŸ™ˆ

  • val equal : t -> t -> bool β€” equal u1 u2 is true.
  • val compare : t -> t -> int β€” compare u1 u2 is 0.
  • val to_string : t -> string β€” to_string b is "()".

OMG and that's the whole page. this was generated by OCamldoc on 2026-06-22, for Unit(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from