On Jul 6, 6:00 pm, Chouser <chou...@gmail.com> wrote:
> On Mon, Jul 6, 2009 at 4:18 PM, Meikel Brandmeyer<m...@kotka.de> wrote:
> > Hi,
>
> > Am 06.07.2009 um 22:00 schrieb Chouser:
>
> >> Or if you really do need a list:
>
> >>  (for [x [1 2 3]] (cons 'some-symbol (list x)))
>
> > o.O
>
> > *cough*(list 'some-symbol x)*cough* ;)
>
> Oh.  Right.  What he said.
>
> --Chouser

Why not this?
(map #(list 'some-symbol %1) [1 2 3])
or
(map list (repeatedly (constantly 'some-symbol)) [1 2 3])
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to