Hi all,

Next problem. If I've a collection of sets of letters, and I want all
possible words you can make with this collection if you keep the order
of the sets intact, I would use 'for'. However, for wants me to know
beforehand how many sets there are in my collection. Is there a more
flexible way?

(for [x #{\a \b \c} y #{d} z #{e f}] [x y z]) works perfectly,
returning something I can turn into a set of #{ade adf bde bdf cde
cdf}. I'm looking for some function that I can just pass a collection
with any number of sets in it, and it starts spitting out the combined
strings. I looked briefly at permutations.clj and seq_utils.clj, but
didn't see an obvious/elegant way to do it in there, and the only way
I'd write it now in clojure is going to be ugly.

Anyone has a suggestion?
--~--~---------~--~----~------------~-------~--~----~
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
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