Created
December 25, 2012 00:12
-
-
Save anonymous/4371110 to your computer and use it in GitHub Desktop.
Shorthand notation for curried functions in Racket.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define ((add x) y) | |
(+ x y)) | |
;; ((add 1) 2) -> 3 | |
;; (add 1 2) -> arity mismatch error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment