KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
the other day I was trying to come up with an example of closure in Clojure. I came up with and example I had seen before and thought it was appropriate. Alas, I was told it was not a good one and that I should provide something with let. Can anyone shed some light? (defn pow [x n] (apply * (repeat x n))) (defn sq [y] (pow y 2)) (defn qb [y] (pow y 3))
Tags (comma-separated)
Save Edits
Cancel