Created
July 25, 2015 16:08
-
-
Save mks-m/0aebb5f346ad3147a33e to your computer and use it in GitHub Desktop.
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 baz [a] a) | |
; this does something and then returns anonymous function, closure is important | |
(defn bar [] (let [a b] #(do (baz a) ))) | |
; this gets anonymous function as input and calls it | |
(defn foo [arg] (arg)) | |
(foo (bar)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment