+1.
#{} is the empty set, () is the empty list, {} is the empty map.
Cheers,
--
Laurent
On 23 jan, 10:17, Konrad Hinsen <[email protected]> wrote:
> On 23.01.2009, at 09:35, Mark Engelberg wrote:
>
> > Now, here's the puzzle. Let's say you want to convert this idea over
> > to working with lists, or perhaps sequences in general.
>
> > Should (powerset '(1 2 3)) print as:
> > (() (1) (2) (3) (1 2) (1 3) (2 3) (1 2 3))
> > or
> > (nil (1) (2) (3) (1 2) (1 3) (2 3) (1 2 3))
>
> My vote is for (), because it specifically represents the empty
> subset of a list, rather than a generic "nothing in here" value,
> which is my interpretation of nil.
>
> > between lists and sequences and the role of nil and the empty list, so
> > I look forward to hearing the responses. Let the debating begin!
>
> This reminds me of the long debates in the APL community about the
> shapes of empty nested arrays :-)
>
> Konrad.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---