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