Int_replace_...rphic_compare(3)
πΈ NAME πΈ
Int_replace_polymorphic_compare β okay so bestie, the official description here is literally just "no description" π which is iconic of the OCaml docs tbh, but don't worry, we're gonna walk through it together π
This page lives in the OCaml library manual, and it's filed under Int_replace_...rphic_compare(3) β yes the title is truncated, no that's not a typo, that's just how the header line rolls π
π MODULE π
The one and only module you're here for:
Module Int_replace_polymorphic_compare
Like, that's it. That's the module. She's a whole module and she said what she said β¨
π DOCUMENTATION π
Here's the full signature, bestie β it declares the module and then justβ¦ ends, which honestly? Mood:
Module Int_replace_polymorphic_compare
: sig end
So it's a sig end β an empty signature, meaning the module itself exports nothing extra beyond what's written below. Then we get into the actual values, and ngl, they're giving comparison operators but make them int-specific π
π¦ the values, one by one π¦
val (=) : int -> int -> boolβ the equality operator, typed up just forints. Takes two ints, hands you abool. Slay β¨val (<>) : int -> int -> boolβ the not-equal operator, same deal: twoints in, aboolout π«Άval (<) : int -> int -> boolβ less-than, but typed forint. She's clean, she's specific, she's literally doing her job πval (>) : int -> int -> boolβ greater-than, forints only. Periodt πval (<=) : int -> int -> boolβ less-than-or-equal,int -> int -> bool, no cap πval (>=) : int -> int -> boolβ greater-than-or-equal,int -> int -> bool, and that's that πval compare : int -> int -> intβ the big one:comparetakes twoints and gives you back anint(the classic negative/zero/positive ordering thing). Main character energy fr fr π₯
Heads up bestie: these are the polymorphic-comparison-replacement operators forint, and their signatures are written out exactly as they appear β so don't go calling them with floats, okay? The types are literally right there πint -> int -> bool, every single time. The details are not the vibe to mess with.
That's the whole page, honestly. Short and sweet, just like a good group chat message π
sign-off, mwah β this cutie was rendered by OCamldoc, dated 2026-06-22, and the manual still calls her Int_replace_...rphic_compare(3) because apparently full names are too much to ask π§ββοΈπ«
π¦ 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