Maybe you meant to use `vector` instead of `vec`? `vec` doesn't accept variable args. Hence my original question.
On Thursday, 13 August 2015 16:24:43 UTC+5:30, Herwig Hochleitner wrote: > > 2015-08-13 11:13 GMT+02:00 Amith George <strid...@gmail.com <javascript:>> > : > >> >> Could you please explain why is the `vec` needed? From what I understand, >> we are expected to treat the variadic args argument as a seq, nothing more. >> >> > What Tassilo said. > Also, it's not nessecary to use `vec`, but you need a function that > creates a seqable from varargs, like vec, list, ... . > That's what the & rest argument syntax does for you: create a collection > object from a variable number of arguments. > > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.