> How would one go about fixing f1 (or b1)?

Depends what you want to achieve... here are two possible 'fixes':

; don't use lazy evaluation
(defn f1 []
  (doall (map (fn [x]  *num* ) [1])))

; use lazy evaluation, but preserve the binding when the lazy sequence
is created
(defn f1 []
  (let [mynum *num*]
    (map (fn [x] mynum) [1])))


--~--~---------~--~----~------------~-------~--~----~
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