Skip to content

Instantly share code, notes, and snippets.

@akimacho
Created March 1, 2015 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akimacho/c1e488e8bb4ff86327e8 to your computer and use it in GitHub Desktop.
Save akimacho/c1e488e8bb4ff86327e8 to your computer and use it in GitHub Desktop.
# let t1 x = x + 1 ;;
val t1 : int -> int = <fun>
# let t2 x = x + 2 ;;
val t2 : int -> int = <fun>
# let t3 x = x + 3 ;;
val t3 : int -> int = <fun>
# t1 t2 t3 5 ;;
Error: This function has type int -> int
It is applied to too many arguments; maybe you forgot a `;'.
# t1 (t2 (t3 5)) ;;
- : int = 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment