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 type SeededHashedType = sig .. end
type t
val equal : t -> t -> bool
val hash : int -> t -> int
equal x y
is true,
then hash seed x = hash seed y
for any value of seed
.
A suitable choice for hash
is the function Hashtbl.seeded_hash
below.