Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; Recursive operation
- (defn op[x]
- (pprint "op")
- #(op x))
- ;; Initial function
- (defn fun[]
- (println "fun"))
- ;; set X to the 5th iteration of this recursive
- ;; function
- ;; should return a pointer to a function
- ;; that prints op 5 times and then prints fun
- ;; only it doesn't :D
- (let [x (nth (iterate op fun) 5)]
- (x)
- )
Advertisement
Add Comment
Please, Sign In to add comment