On Nov 9, 2:47 pm, Shoeb Bhinderwala <[email protected]>
wrote:
> (["a"] ["a" "b"] ["a" "b" "c"] ["a" "b" "c" "d"])

It should be pointed out that this result -- while it may be what you
actually want -- is not "all subsets of" ["a" "b" "c" "d"]. For that
you might want to use combinatorics/subsets:

user=> (C/subsets ["a" "b" "c" "d"])
(() ("a") ("b") ("c") ("d") ("a" "b") ("a" "c") ("a" "d") ("b" "c")
("b" "d") ("c" "d") ("a" "b" "c") ("a" "b" "d") ("a" "c" "d") ("b" "c"
"d") ("a" "b" "c" "d"))

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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