No introduction yet
Sign in to post a Greeting.
Thanks for your help with the defn/fn concept issue. I forgot that functions can be assigned to symbols and calls to that symbol. I pulled the original the book 'Programming Clojure':
(defn make-greeter [greeting-prefi
x] (fn [name] (str greeting-prefix
", " name)))
(def hello-greeting (make-greeter "Hello"))
(def aloha-greeting (make-greeter "Aloha"))
(hello-greeting
"world")
(aloha-greeting
"world")