Re: help understanding how map works

2011-09-28 Thread Mark Engelberg
#([ % ]) is like:
(defn wrap [ x ] ([ x ]) )

not
(defn wrap [ x ] [ x ] )

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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

Re: help understanding how map works

2011-09-28 Thread Cluj
Thank you! Obvious once someone explains it :)


On Sep 28, 6:13 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
 #([ % ]) is like:
 (defn wrap [ x ] ([ x ]) )

 not
 (defn wrap [ x ] [ x ] )

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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


Re: help understanding how map works

2011-09-28 Thread Sean Corfield
On Wed, Sep 28, 2011 at 6:32 PM, Cluj alex.sant...@gmail.com wrote:
 Thank you! Obvious once someone explains it :)

You could also do: (map vector '(A B C))
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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