This is just something contrived I was playing around with and I know
it is silly. I just have a couple of questions about it.

(defn create-a [firstName lastName]
  (defn getFirstName [] firstName)
  (defn getLastName [] lastName)
  (fn [operator & operands]
    (apply operator operands)))

(def t (create-a "Kurt" "Z"))
;How or why does this next line work? What is "getFirstName" in this
context?
(t getFirstName)

;I'm not surprised this doesn't work.
(t 'getFirstName)

;And I'm not surprised this doesn't work.
(defn getLastName "blah")
(t getLastName)

Kurt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to