Vectors also permit evaluation of the literal collection's elements: user=> [(+ 1 2) (+ 3 4)] [3 7] user=> '((+ 1 2) (+ 3 4)) ((+ 1 2) (+ 3 4))
On Sep 25, 6:43 am, Joop Kiefte <iko...@gmail.com> wrote: > the vector form. in idiomatic clojure, lists are practically only used > for code and macro's. > > 2010/9/25 HiHeelHottie <hiheelhot...@gmail.com>: > > > For a literal collection of numbers which would be more idiomatic and > > why? > > > (reduce + '(1 2 3)) vs (reduce + [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 > > -- > Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 > > Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over > Esperanto? Perguntas sobre o Esperanto? -http://demandoj.tk -- 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