Wow - there are so many ways to skin a cat (and dog, bird, horse,
wolf, and pig!)

These are all great.  Thank you all so so much

James - I really appreciate walking me thru the methodology.  that is
a big help for those of us just gettting started (particularly when we
dont have much lisp experience)

Brendan - you use a bunch of functions i have never even heard of -
the partial one i have read about and not really understood how i
would use it.  It is great to see it used for an example that I can
dig into.

Thanks all again so very much.

On Mar 5, 6:55 pm, James Reeves <weavejes...@googlemail.com> wrote:
> On Mar 5, 7:50 pm, James Reeves <weavejes...@googlemail.com> wrote:
>
> >   (apply map merge
> >     (for [k (keys m)]
> >       (for [v (.split (m k) " ")]
> >         {k v}))))
>
> On reflection, I think this should be
>
> (apply map merge
>   (for [k (keys (first m))]
>     (for [v (.split (m k) " ")]
>       {k v})))
>
> Also, this assumes each map has the same keys, and each value has the
> same number of "words".
>
> - James

-- 
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