1 (** Useful shortcuts *)
3 let (&) f g
= fun x
-> f
(g x
)
6 external id
: 'a
-> 'a
= "%identity"
9 let catch f x
= try Some
(f x
) with _
-> None
11 let apply2 f
= fun (x
,y
) -> f x
, f y
12 let fail fmt
= Printf.ksprintf failwith fmt
13 (* let println = print_endline *)