Skip to content

Instantly share code, notes, and snippets.

@YounesCheikh
Created December 3, 2012 13:27
Show Gist options
  • Save YounesCheikh/4195044 to your computer and use it in GitHub Desktop.
Save YounesCheikh/4195044 to your computer and use it in GitHub Desktop.
Objective Caml version 3.11.2
# (fun f -> fun x -> f (x + 3)) (fun y -> y+2) ((fun a -> a*2) 3 ) ;;
- : int = 11
# (fun f -> fun x -> f (x + 3)) (fun y -> y+2) (3*2) ;;
- : int = 11
# (fun f -> fun x -> f(x+3)) (fun y -> y+2 ) 6 ;;
- : int = 11
# (fun x -> ( fun y -> y + 2 ) (x + 3 ) ) 6 ;;
- : int = 11
# (fun y -> y+2) 9;;
- : int = 11
# (9 + 2) ;;
- : int = 11
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment