On Sun, Feb 1, 2009 at 8:25 PM, Mark Engelberg <[email protected]> wrote:
> (set (map sort (selections [1 2 3 4 5] 3)))

or
(distinct (map sort (selections [1 2 3 4 5] 3)))
if you want to generate the values lazily rather than all at once.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to