Below is the API for the OCaml standard library. It's directly copied over from the OCaml Manual, formatted to the Reason syntax and styled accordingly. The API docs are work-in-progress; we'll be polishing these gradually!
If you're targeting JavaScript, the API docs for BuckleScript includes all of below, plus JS-specific APIs.
module Char: sig .. end
val code : char -> int
val chr : int -> char
Invalid_argument "Char.chr"
if the argument is
outside the range 0--255.val escaped : char -> string
val lowercase : char -> char
val uppercase : char -> char
type t = char
val compare : t -> t -> int
Pervasives.compare
. Along with the type t
, this function compare
allows the module Char
to be passed as argument to the functors
Set.Make
and Map.Make
.