On Thu, Dec 16, 2010 at 1:55 AM, Sunil S Nandihalli
wrote:
> thanks Ken,
You're welcome.
--
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 - p
thanks Ken,
your second vecify was exactly what I was looking for! .. I feel it would
be good candidate for the core.
Sunil.
On Thu, Dec 16, 2010 at 12:19 PM, Ken Wesson wrote:
> On Thu, Dec 16, 2010 at 1:33 AM, Sunil S Nandihalli
> wrote:
> > Hello everybody,
> > I would like to write regula
On Thu, Dec 16, 2010 at 1:33 AM, Sunil S Nandihalli
wrote:
> Hello everybody,
> I would like to write regular code something like
> [1 2 ~@(map some-fn some-coll) 4 5]
> is this possible?
(vec (concat [1 2] (map some-fn some-coll) [4 5]))
will do it.
A tidier form would be:
user=> (vecify 1 2
Hello everybody,
I would like to write regular code something like
[1 2 ~@(map some-fn some-coll) 4 5]
is this possible?
I don't mind not using the literal vector notation..
it could even be
(some-macro-or-fn 1 2 3 ~@(map some-fn some-coll) 4 5)
is this possible .. ?
i don't want '" ` "" be