On Jan 24, 7:31 am, e <evier...@gmail.com> wrote:
> Then again, I already chimed in.  a list isn't a set.  You said so in the
> introduction.  Maybe set's need there own print representation, like <>
> ..... uh oh, starting to look like C++

Like this?:

user=> (hash-set 1 2 3)
#{1 2 3}

> On Sat, Jan 24, 2009 at 3:43 AM, Mark Engelberg 
> <mark.engelb...@gmail.com>wrote:
> > Anyone want to try to convince me otherwise?  If you think my logic is
> > flawed, I'd love to hear your take on this problem.

My intuition is that the subsets returned by powerset should have the
same type as the argument:

user=> (powerset #{1 2})
(#{} #{1} #{2} #{1 2})

user=> (powerset [1 2])
([] [1] [2] [1 2])

user=> (powerset '(1 2))
(() (1) (2) (1 2))

For non-set collections, the name "powerset" might be misleading.
Maybe the right name for the concept is something more like
"subcolls".

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