Utilities regarding refs
val refset : 'a Stdlib.ref -> 'a -> unitrefset r x sets x to ref r.
val refget : 'a Stdlib.ref -> 'aval refupdate : 'a Stdlib.ref -> ('a -> 'a) -> unitrefupdate r f updates referent of r by f.
val refupdate' : ('a -> 'a) -> 'a Stdlib.ref -> unitrefupdate' f r is equivalent to refupdate r f.
val refupdate_and_calc : 'x Stdlib.ref -> ('x -> 'a * 'x) -> 'arefupdate_and_calc r f calculate a result and the a updated referent value from the current referent value of r using f.
val refappend : 'a list Stdlib.ref -> 'a -> unitrefappend r x appends x to referent of r.
val refappend' : 'a -> 'a list Stdlib.ref -> unitrefappend' x r is equivalent to refappend r x.
val refpop : 'a list Stdlib.ref -> 'arefpop r pop first item of the list referred to by r. Raises Not_found if the list is empty.
val incr : int Stdlib.ref -> unitincr r increases the referent of r by one.
val decr : int Stdlib.ref -> unitdecr r decreases the referent of r by one.
val refupdate'_and_get : ('a -> 'a) -> 'a Stdlib.ref -> 'aval get_and_refupdate' : ('a -> 'a) -> 'a Stdlib.ref -> 'aval incr_and_get : int Stdlib.ref -> intval decr_and_get : int Stdlib.ref -> intval get_and_incr : int Stdlib.ref -> intval get_and_decr : int Stdlib.ref -> int
Exception helper functions
val failwith' : ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'aval invalid_arg' : ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
(Section name todo)
val mul : int -> int -> intval div : int -> int -> intval rem : int -> int -> int
Utilities useful in idiomatic functional programming
val constant : 'a -> 'b -> 'aval iotaf : (int -> 'a) -> int -> 'a listval iotaf' : (int -> unit) -> int -> unitval iotafl : ('a -> int -> 'a) -> 'a -> int -> 'aval iotafl' : ('a -> 'b -> 'a) -> 'a -> (int -> 'b) -> int -> 'aval min_by : ('a -> 'b) -> 'a -> 'a -> 'aval max_by : ('a -> 'b) -> 'a -> 'a -> 'aval projected_compare : ?cmp:('b -> 'b -> int) -> ('a -> 'b) -> 'a -> 'a -> intval swap : ('x * 'y) -> 'y * 'xval foldl : ('a -> 'b -> 'a) -> 'a -> 'b list -> 'aval foldr : ('a -> 'b -> 'b) -> 'b -> 'a list -> 'binclude module type of Functionals.BasicInfix
val (&) : ('x -> 'y) -> 'x -> 'yval (%) : ('y -> 'z) -> ('x -> 'y) -> 'x -> 'zval (%%) : ('a -> 'y -> 'z) -> ('x -> 'y) -> 'a -> 'x -> 'zval (&>) : ('x -> 'y) -> ('y -> 'z) -> 'x -> 'zval (?.) : ('a -> 'b -> 'c) -> 'b -> 'a -> 'cval (?..) : ('a -> 'b -> 'c -> 'd) -> 'c -> 'a -> 'b -> 'dval (!.) : 'b -> ('b -> 'b -> 'c) -> 'b -> 'cval (!..) : 'c -> ('a -> 'b -> 'c -> 'd) -> 'a -> 'b -> 'dval (&&>) : ('x -> 'y -> 'z) -> ('z -> 'r) -> 'x -> 'y -> 'rval (|->) : 'x -> ('x -> unit) -> 'xval (//) : ('a -> 'x) -> ('b -> 'y) -> ('a * 'b) -> 'x * 'yval (/>) : ('a * 'b) -> ('b -> 'c) -> 'a * 'cval (/<) : ('a * 'b) -> ('a -> 'c) -> 'c * 'bval (|+>) : 'a -> ('a -> 'b) -> 'a * 'bval (|+<) : 'a -> ('a -> 'b) -> 'b * 'aval (?>) : ('b -> 'c) -> ('a * 'b) -> 'a * 'cval (?<) : ('a -> 'c) -> ('a * 'b) -> 'c * 'bval (?+>) : ('a -> 'b) -> 'a -> 'a * 'bval (?+<) : ('a -> 'b) -> 'a -> 'b * 'aval (?&>) : ('y2 -> 'x2) -> (('x1 * 'x2) -> 'r) -> ('x1 * 'y2) -> 'rval (?&<) : ('y1 -> 'x1) -> (('x1 * 'x2) -> 'r) -> ('y1 * 'x2) -> 'rval (!!) : ('a -> 'b -> 'x) -> ('a * 'b) -> 'xval (!?) : (('a * 'b) -> 'x) -> 'a -> 'b -> 'x
(Section name todo)
(Section name todo)
Enhanced Stdlib
type ('a, 'b) either = ('a, 'b) Either.tmodule Queue : sig ... endval some : 'a -> 'a optionval (>?) : 'a option -> ('a -> 'b) -> 'b optionval (>>?) : 'a option -> ('a -> 'b option) -> 'b optionval (|?!) : 'a Option.t -> (unit -> 'a) -> 'aval (&>?) : ('x -> 'y option) -> ('y -> 'z) -> 'x -> 'z optionval (&>>?) : ('x -> 'y option) -> ('y -> 'z option) -> 'x -> 'z optionmodule Array : sig ... endmodule List : sig ... endinclude module type of List.Ops_piping
val (|!>) : 'x List.t -> ('x -> unit) -> unitval (|@>) : 'x List.t -> ('acc * (('acc * 'x) -> 'acc)) -> 'accval (|+&?>) : 'x List.t -> ('x -> 'y option) -> ('x * 'y) List.tmodule Bytes : sig ... endmodule MapPlus (M : Stdlib.Map.S) : sig ... endinclude module type of IoPervasives
val with_output_file : string -> (Stdlib.out_channel -> 'a) -> 'aval slurp_stdin : ?buf:bytes -> unit -> stringval slurp_file : string -> stringval spit_file : string -> string -> unitval pp_int53p : Stdlib.Format.formatter -> int53p -> unitval show_int53p : int53p -> stringall according to proleptic Gregorian Calender
type ppf = Stdlib.Format.formatterval color_enabled : bool Stdlib.refval fprintf :
Stdlib.Format.formatter ->
('a, Stdlib.Format.formatter, unit) Stdlib.format ->
'aval printf : ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'aval sprintf : ('a, Stdlib.Format.formatter, unit, string) Stdlib.format4 -> 'aval eprintf : ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'aval pp_of_to_string : ('a -> string) -> Stdlib.Format.formatter -> 'a -> unitval to_string_of_pp : (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> stringval pps : ('a -> string) -> Stdlib.Format.formatter -> 'a -> unitval spp : (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> stringval pp_int : Stdlib.Format.formatter -> int -> unitval pp_float : Stdlib.Format.formatter -> float -> unitval pp_string : Stdlib.Format.formatter -> string -> unitval pp_string_quoted : Stdlib.Format.formatter -> string -> unitval pp_char : Stdlib.Format.formatter -> char -> unitval pp_bool : Stdlib.Format.formatter -> bool -> unitval pp_unit : Stdlib.Format.formatter -> unit -> unitval pp_ref_address : Stdlib.Format.formatter -> 'x Stdlib.ref -> unitval pp_int32 : Stdlib.Format.formatter -> int32 -> unitval pp_int64 : Stdlib.Format.formatter -> int64 -> unitval pp_integer_sep' :
padding:(int * char) option ->
Stdlib.Format.formatter ->
int ->
unitval pp_integer_sep : Stdlib.Format.formatter -> int -> unitval pp_multiline : Stdlib.Format.formatter -> string -> unitval pp_exn : Stdlib.Format.formatter -> exn -> unitval pp_full_exn' :
Stdlib.Format.formatter ->
(exn * Stdlib.Printexc.raw_backtrace) ->
unitval pp_full_exn : Stdlib.Format.formatter -> exn -> unitval string_of_symbolic_output_items :
Stdlib.Format.symbolic_output_item list ->
stringmodule Log0 : sig ... endval debug :
?modul:string ->
('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 ->
'aval info :
?modul:string ->
('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 ->
'atype backtrace_info = [ | `ocaml_backtrace of Stdlib.Printexc.raw_backtrace| `string_stacktrace of string
]module Json : sig ... endencode / decode a string according to the RFC 3986 Section 2.1 URI Generic Syntax - Percent-Encoding syntax