On 22 February 2010 20:28, Sean Devlin <francoisdev...@gmail.com> wrote:
> I've had to actually code this specific problem, and I found
> that using group-by & some secondary mapping operation was the only
> thing that gave me the flexibility I needed (manufacturing is fun!).

Incidentally, have you ever benefitted from group-by using a
sorted-map, as opposed to, say, a hash-map? I'm asking because I'm a
bit puzzled by the reasoning behind using this particular structure
with the resulting ordering only vaguely related (i.e. in a manner
which might be difficult to predict) to that of the input collection
anyway...

I haven't got a strong opinion on this, by the way, it's just that if
there isn't some huge benefit to sorted-map which I can't yet see,
perhaps a hash-map would make for a more versatile function?

Sincerely,
Michał

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