Created
June 17, 2015 21:49
-
-
Save Risto-Stevcev/ada331185790c7d38044 to your computer and use it in GitHub Desktop.
First-order functions
This file contains 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
(defn callfn [f & args] | |
(apply f args)) | |
(callfn + 1 2 3 4) | |
; returns 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment