Skip to content

Instantly share code, notes, and snippets.

@sugitach
Created January 15, 2015 10:57
Show Gist options
  • Save sugitach/007207128e6fb3ffb6ad to your computer and use it in GitHub Desktop.
Save sugitach/007207128e6fb3ffb6ad to your computer and use it in GitHub Desktop.
(* 'a -> 'a *)
let func1 a = a
(* 'a -> 'b -> 'a *)
let func2 a b = a
(* 'a -> 'b -> 'b *)
let func3 a b = b
(* 'a -> ('a -> 'b) -> 'b *)
let func4 a f = f a
(* ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c *)
let func5 f1 f2 a = f2 (f1 a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment