StdExtensions to the standard library. Most files in the project should begin open Std.
New modules
module Return : sig ... endEarly returns
module Nonempty_list : sig ... endA non-empty list type. This can be constructed with the usual list syntax when the compiler is inferring the type, e.g.
module Nothing : sig ... endmodule Hash_set : sig ... endHash sets are implemented as a hashmap from 'a to unit
OCaml Stdlib with labeled functions
include module type of struct include Stdlib.MoreLabels endA few extensions to builtin modules
module Option : sig ... endmodule List : sig ... endmodule Set : sig ... endmodule Map : sig ... endmodule String : sig ... endmodule Int : sig ... endmodule Float : sig ... endmodule Hashtbl : sig ... endmodule Result : sig ... endmodule Lazy : sig ... endPervasive free functions
Useful for @@deriving derivers
module Sexp_conv : sig ... endmodule Compare : sig ... end