package devkit
Module Devkit_core.PreludeSource
Useful shortcuts
module U = ExtUnix.Specificfunction composition : f $ g is equivalent to (fun x -> f (g x))
2-function composition : f $$ g is equivalent to (fun x y -> f (g x) (g y))
1-argument function composition combinators that allow quickly switching to or from point-free chained function pipeline e.g. let inc s = string_of_int @@ (+) 1 @@ int_of_string s vs let inc = F1.(string_of_int @@ (+) 1 @@ int_of_string) and similarly let inc = F1.(int_of_string |> (+) 1 |> string_of_int)
identity
idem
reverse arguments, flip f x y is equivalent to f y x
map over 2-tuple
some x is equivalent to Some x
atoi name value