Re: Trying to understand clojure evaluation

2010-10-02 Thread swheeler
Andy Thanks. Makes complete sense when explained! Thanks for the speedy reply. On Oct 2, 6:27 pm, Andy Fingerhut wrote: > user> (def a ["a" "a" "a" "b" "c" "c" "a"]) > #'user/a > user> (pack a) > (("a" "a" "a") ("b") ("c" "c") ("a")) > > Now calling (map f (pack a)) will cause the function you

Re: Trying to understand clojure evaluation

2010-10-02 Thread Andy Fingerhut
user> (def a ["a" "a" "a" "b" "c" "c" "a"]) #'user/a user> (pack a) (("a" "a" "a") ("b") ("c" "c") ("a")) Now calling (map f (pack a)) will cause the function you give as the first argument of map to be called with each of the elements of the collection (pack a) in turn. Those elements are,