Module Ocamlformat_stdlibSource
include module type of Base
include module type of struct include Export end
include sig ... end
val sexp_of_array :
('a : value_or_null mod separable). ('a -> Sexplib0.Sexp.t) ->
'a Array.t ->
Sexplib0.Sexp.tval sexp_of_array__stack :
('a : value_or_null mod separable). ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Array.t @ local ->
Sexplib0.Sexp.t @ localval array_of_sexp :
('a : value_or_null mod separable). (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a Array.tval array_sexp_grammar :
('a : value_or_null mod separable). 'a Sexplib0.Sexp_grammar.t ->
'a Array.t Sexplib0.Sexp_grammar.t @@ portableinclude sig ... end
val hash_fold_iarray :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a Iarray.t ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_iarray__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Iarray.t @ local ->
Sexplib0.Sexp.t @ localval iarray_sexp_grammar :
'a. 'a Sexplib0.Sexp_grammar.t ->
'a Iarray.t Sexplib0.Sexp_grammar.t @@ portableval hash_fold_list :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a list ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_list__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a list @ local ->
Sexplib0.Sexp.t @ localval hash_fold_nativeint :
Ppx_hash_lib.Std.Hash.state ->
nativeint ->
Ppx_hash_lib.Std.Hash.stateval hash_fold_option :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a option ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_option__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a option @ local ->
Sexplib0.Sexp.t @ localval compare_option__bits64__local :
'a. ('a @ local -> 'a @ local -> int) ->
'a option__bits64 @ local ->
'a option__bits64 @ local ->
intval compare_option__bits32__local :
'a. ('a @ local -> 'a @ local -> int) ->
'a option__bits32 @ local ->
'a option__bits32 @ local ->
intval compare_option__word__local :
'a. ('a @ local -> 'a @ local -> int) ->
'a option__word @ local ->
'a option__word @ local ->
intval compare_option__float64__local :
'a. ('a @ local -> 'a @ local -> int) ->
'a option__float64 @ local ->
'a option__float64 @ local ->
intval compare_option__float32__local :
'a. ('a @ local -> 'a @ local -> int) ->
'a option__float32 @ local ->
'a option__float32 @ local ->
intval compare_option__bits64 :
'a. ('a -> 'a -> int) ->
'a option__bits64 ->
'a option__bits64 ->
intval compare_option__bits32 :
'a. ('a -> 'a -> int) ->
'a option__bits32 ->
'a option__bits32 ->
intval compare_option__float64 :
'a. ('a -> 'a -> int) ->
'a option__float64 ->
'a option__float64 ->
intval compare_option__float32 :
'a. ('a -> 'a -> int) ->
'a option__float32 ->
'a option__float32 ->
intval equal_option__bits64__local :
'a. ('a @ local -> 'a @ local -> bool) ->
'a option__bits64 @ local ->
'a option__bits64 @ local ->
boolval equal_option__bits32__local :
'a. ('a @ local -> 'a @ local -> bool) ->
'a option__bits32 @ local ->
'a option__bits32 @ local ->
boolval equal_option__word__local :
'a. ('a @ local -> 'a @ local -> bool) ->
'a option__word @ local ->
'a option__word @ local ->
boolval equal_option__float64__local :
'a. ('a @ local -> 'a @ local -> bool) ->
'a option__float64 @ local ->
'a option__float64 @ local ->
boolval equal_option__float32__local :
'a. ('a @ local -> 'a @ local -> bool) ->
'a option__float32 @ local ->
'a option__float32 @ local ->
boolval equal_option__bits64 :
'a. ('a -> 'a -> bool) ->
'a option__bits64 ->
'a option__bits64 ->
boolval equal_option__bits32 :
'a. ('a -> 'a -> bool) ->
'a option__bits32 ->
'a option__bits32 ->
boolval equal_option__float64 :
'a. ('a -> 'a -> bool) ->
'a option__float64 ->
'a option__float64 ->
boolval equal_option__float32 :
'a. ('a -> 'a -> bool) ->
'a option__float32 ->
'a option__float32 ->
boolval option_of_sexp__bits64 :
'a. (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a option__bits64val option_of_sexp__bits32 :
'a. (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a option__bits32val option_of_sexp__float64 :
'a. (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a option__float64val option_of_sexp__float32 :
'a. (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a option__float32val sexp_of_option__bits64 :
'a. ('a -> Sexplib0.Sexp.t) ->
'a option__bits64 ->
Sexplib0.Sexp.tval sexp_of_option__bits32 :
'a. ('a -> Sexplib0.Sexp.t) ->
'a option__bits32 ->
Sexplib0.Sexp.tval sexp_of_option__float64 :
'a. ('a -> Sexplib0.Sexp.t) ->
'a option__float64 ->
Sexplib0.Sexp.tval sexp_of_option__float32 :
'a. ('a -> Sexplib0.Sexp.t) ->
'a option__float32 ->
Sexplib0.Sexp.tval sexp_of_option__bits64__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a option__bits64 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_option__bits32__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a option__bits32 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_option__word__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a option__word @ local ->
Sexplib0.Sexp.t @ localval sexp_of_option__float64__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a option__float64 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_option__float32__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a option__float32 @ local ->
Sexplib0.Sexp.t @ localval hash_fold_result :
'a 'b. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
(Ppx_hash_lib.Std.Hash.state -> 'b -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a, 'b) result ->
Ppx_hash_lib.Std.Hash.stateval result_of_sexp :
'a 'b. (Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) resultval sexp_of_result :
'a 'b. ('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) result ->
Sexplib0.Sexp.tval sexp_of_result__stack :
'a 'b. ('a @ local -> Sexplib0.Sexp.t @ local) ->
('b @ local -> Sexplib0.Sexp.t @ local) ->
('a, 'b) result @ local ->
Sexplib0.Sexp.t @ localval result_sexp_grammar :
'a 'b. 'a Sexplib0.Sexp_grammar.t ->
'b Sexplib0.Sexp_grammar.t ->
('a, 'b) result Sexplib0.Sexp_grammar.tval compare_result__bits64__local :
'a 'b. ('a @ local -> 'a @ local -> int) ->
('b @ local -> 'b @ local -> int) ->
('a, 'b) result__bits64 @ local ->
('a, 'b) result__bits64 @ local ->
intval compare_result__bits32__local :
'a 'b. ('a @ local -> 'a @ local -> int) ->
('b @ local -> 'b @ local -> int) ->
('a, 'b) result__bits32 @ local ->
('a, 'b) result__bits32 @ local ->
intval compare_result__word__local :
'a 'b. ('a @ local -> 'a @ local -> int) ->
('b @ local -> 'b @ local -> int) ->
('a, 'b) result__word @ local ->
('a, 'b) result__word @ local ->
intval compare_result__float64__local :
'a 'b. ('a @ local -> 'a @ local -> int) ->
('b @ local -> 'b @ local -> int) ->
('a, 'b) result__float64 @ local ->
('a, 'b) result__float64 @ local ->
intval compare_result__float32__local :
'a 'b. ('a @ local -> 'a @ local -> int) ->
('b @ local -> 'b @ local -> int) ->
('a, 'b) result__float32 @ local ->
('a, 'b) result__float32 @ local ->
intval compare_result__bits64 :
'a 'b. ('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) result__bits64 ->
('a, 'b) result__bits64 ->
intval compare_result__bits32 :
'a 'b. ('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) result__bits32 ->
('a, 'b) result__bits32 ->
intval compare_result__word :
'a 'b. ('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) result__word ->
('a, 'b) result__word ->
intval compare_result__float64 :
'a 'b. ('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) result__float64 ->
('a, 'b) result__float64 ->
intval compare_result__float32 :
'a 'b. ('a -> 'a -> int) ->
('b -> 'b -> int) ->
('a, 'b) result__float32 ->
('a, 'b) result__float32 ->
intval equal_result__bits64__local :
'a 'b. ('a @ local -> 'a @ local -> bool) ->
('b @ local -> 'b @ local -> bool) ->
('a, 'b) result__bits64 @ local ->
('a, 'b) result__bits64 @ local ->
boolval equal_result__bits32__local :
'a 'b. ('a @ local -> 'a @ local -> bool) ->
('b @ local -> 'b @ local -> bool) ->
('a, 'b) result__bits32 @ local ->
('a, 'b) result__bits32 @ local ->
boolval equal_result__word__local :
'a 'b. ('a @ local -> 'a @ local -> bool) ->
('b @ local -> 'b @ local -> bool) ->
('a, 'b) result__word @ local ->
('a, 'b) result__word @ local ->
boolval equal_result__float64__local :
'a 'b. ('a @ local -> 'a @ local -> bool) ->
('b @ local -> 'b @ local -> bool) ->
('a, 'b) result__float64 @ local ->
('a, 'b) result__float64 @ local ->
boolval equal_result__float32__local :
'a 'b. ('a @ local -> 'a @ local -> bool) ->
('b @ local -> 'b @ local -> bool) ->
('a, 'b) result__float32 @ local ->
('a, 'b) result__float32 @ local ->
boolval equal_result__bits64 :
'a 'b. ('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a, 'b) result__bits64 ->
('a, 'b) result__bits64 ->
boolval equal_result__bits32 :
'a 'b. ('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a, 'b) result__bits32 ->
('a, 'b) result__bits32 ->
boolval equal_result__word :
'a 'b. ('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a, 'b) result__word ->
('a, 'b) result__word ->
boolval equal_result__float64 :
'a 'b. ('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a, 'b) result__float64 ->
('a, 'b) result__float64 ->
boolval equal_result__float32 :
'a 'b. ('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a, 'b) result__float32 ->
('a, 'b) result__float32 ->
boolval result_of_sexp__bits64 :
'a 'b. (Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) result__bits64val result_of_sexp__bits32 :
'a 'b. (Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) result__bits32val result_of_sexp__word :
'a 'b. (Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) result__wordval result_of_sexp__float64 :
'a 'b. (Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) result__float64val result_of_sexp__float32 :
'a 'b. (Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) result__float32val sexp_of_result__bits64 :
'a 'b. ('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) result__bits64 ->
Sexplib0.Sexp.tval sexp_of_result__bits32 :
'a 'b. ('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) result__bits32 ->
Sexplib0.Sexp.tval sexp_of_result__word :
'a 'b. ('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) result__word ->
Sexplib0.Sexp.tval sexp_of_result__float64 :
'a 'b. ('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) result__float64 ->
Sexplib0.Sexp.tval sexp_of_result__float32 :
'a 'b. ('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) result__float32 ->
Sexplib0.Sexp.tval sexp_of_result__bits64__stack :
'a 'b. ('a @ local -> Sexplib0.Sexp.t @ local) ->
('b @ local -> Sexplib0.Sexp.t @ local) ->
('a, 'b) result__bits64 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_result__bits32__stack :
'a 'b. ('a @ local -> Sexplib0.Sexp.t @ local) ->
('b @ local -> Sexplib0.Sexp.t @ local) ->
('a, 'b) result__bits32 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_result__word__stack :
'a 'b. ('a @ local -> Sexplib0.Sexp.t @ local) ->
('b @ local -> Sexplib0.Sexp.t @ local) ->
('a, 'b) result__word @ local ->
Sexplib0.Sexp.t @ localval sexp_of_result__float64__stack :
'a 'b. ('a @ local -> Sexplib0.Sexp.t @ local) ->
('b @ local -> Sexplib0.Sexp.t @ local) ->
('a, 'b) result__float64 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_result__float32__stack :
'a 'b. ('a @ local -> Sexplib0.Sexp.t @ local) ->
('b @ local -> Sexplib0.Sexp.t @ local) ->
('a, 'b) result__float32 @ local ->
Sexplib0.Sexp.t @ localval sexp_of_ref__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a ref @ local ->
Sexplib0.Sexp.t @ localFormat stuff
List operators
include module type of struct include Base.List.Infix end
Iarray operators
include module type of struct include Iarray.O end
An alias for get.
Int operators and comparisons
Float operators
Reverse application operator. x |> g |> f is equivalent to f (g (x)).
Application operator. g @@ f @@ x is equivalent to g (f (x)).
Boolean operations
Common string operations
Reference operations
Pair operations
Exceptions stuff
Misc
val hash_fold_or_null :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a or_null ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_or_null__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a or_null @ local ->
Sexplib0.Sexp.t @ localContinue_or_stop.t is used by the f argument to fold_until in order to indicate whether folding should continue, or stop early.
val hash_fold_global :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
'a ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a global ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_global :
('a : value_or_null). ('a -> Sexplib0.Sexp.t) ->
'a global ->
Sexplib0.Sexp.tval sexp_of_global__stack :
('a : value_or_null). ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a global @ local ->
Sexplib0.Sexp.t @ localval global_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a globalval global_sexp_grammar :
('a : value_or_null). 'a Sexplib0.Sexp_grammar.t ->
'a global Sexplib0.Sexp_grammar.t @@ portabletype ('a : value_or_null) portable : value_or_null mod portable =
'a Base.Modes.Portable.t =
{}val hash_fold_portable :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
'a ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a portable ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_portable :
('a : value_or_null). ('a -> Sexplib0.Sexp.t) ->
'a portable ->
Sexplib0.Sexp.tval sexp_of_portable__stack :
('a : value_or_null). ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a portable @ local ->
Sexplib0.Sexp.t @ localval portable_sexp_grammar :
('a : value_or_null). 'a Sexplib0.Sexp_grammar.t ->
'a portable Sexplib0.Sexp_grammar.t @@ portabletype ('a : value_or_null) contended : value_or_null mod contended =
'a Base.Modes.Contended.t =
{}val contended_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a contendedtype ('a : value_or_null) portended : value_or_null mod contended portable =
'a Base.Modes.Portended.t =
{}val hash_fold_many :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
'a ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a many ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_many :
('a : value_or_null). ('a -> Sexplib0.Sexp.t) ->
'a many ->
Sexplib0.Sexp.tval sexp_of_many__stack :
('a : value_or_null). ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a many @ local ->
Sexplib0.Sexp.t @ localval many_sexp_grammar :
('a : value_or_null). 'a Sexplib0.Sexp_grammar.t ->
'a many Sexplib0.Sexp_grammar.t @@ portabletype ('a : value_or_null) aliased_many : value_or_null mod aliased many =
'a Base.Modes.Aliased_many.t =
{}type ('a : value_or_null) forkable : value_or_null mod forkable =
'a Base.Modes.Forkable.t =
{}type ('a : value_or_null) unyielding : value_or_null mod unyielding =
'a Base.Modes.Unyielding.t =
{}val compare_unyielding :
('a : value_or_null). ('a -> 'a -> int) ->
'a unyielding ->
'a unyielding ->
intval compare_unyielding__local :
('a : value_or_null). ('a @ local -> 'a @ local -> int) ->
'a unyielding @ local ->
'a unyielding @ local ->
intval equal_unyielding :
('a : value_or_null). ('a -> 'a -> bool) ->
'a unyielding ->
'a unyielding ->
boolval equal_unyielding__local :
('a : value_or_null). ('a @ local -> 'a @ local -> bool) ->
'a unyielding @ local ->
'a unyielding @ local ->
boolval hash_fold_unyielding :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
'a ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a unyielding ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_unyielding :
('a : value_or_null). ('a -> Sexplib0.Sexp.t) ->
'a unyielding ->
Sexplib0.Sexp.tval sexp_of_unyielding__stack :
('a : value_or_null). ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a unyielding @ local ->
Sexplib0.Sexp.t @ localval unyielding_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a unyieldingval unyielding_sexp_grammar :
('a : value_or_null). 'a Sexplib0.Sexp_grammar.t ->
'a unyielding Sexplib0.Sexp_grammar.t @@ portabletype ('a : value_or_null) stateless : value_or_null mod stateless =
'a Base.Modes.Stateless.t =
{}type ('a : value_or_null) immutable : value_or_null mod immutable =
'a Base.Modes.Immutable.t =
{}type ('a : value mod non_float) immutable_data : immutable_data =
'a Base.Modes.Immutable_data.t =
{}include module type of Stdio
Same as In_channel.stdin
Same as Out_channel.stdout
Same as Out_channel.stderr
Same as Out_channel.printf
Same as Out_channel.print_s
Same as Out_channel.eprint_s
Same as Out_channel.eprintf
Same as Out_channel.print_string
Same as Out_channel.print_endline
Same as Out_channel.prerr_endline
Composition of functions: (f >> g) x is exactly equivalent to g (f (x)). Left associative.
Asserting identity: check f x asserts that f x does not raise and returns x.