start split library
[sqlgg.git] / lib / prelude.ml
blob8a3ac8f434a2842048e68224ad69426bc653c8b9
2 let ($) f g = function x -> f (g x)
3 let (&) f x = f x
4 let (>>) x f = f x
6 external id : 'a -> 'a = "%identity"
7 let catch f x = try Some (f x) with _ -> None
8 let tee f x = f x; x
9 let flip f x y = f y x