Skip to content

Instantly share code, notes, and snippets.

@w495
Created December 11, 2013 01:56
Show Gist options
  • Save w495/7903940 to your computer and use it in GitHub Desktop.
Save w495/7903940 to your computer and use it in GitHub Desktop.
add ~> 1 ~> 2 ~> 3 ($$);; (* 6 *)
let (~>) x =
fun y f -> f (x + y);;
let ($$) x = x;;
let add g = g 0;;
add ~> 1 ~> 2 ~> 3 ($$);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment