Bag with explicit 0 elements?

2015-02-28 Thread Philip Hazelden
I'm trying to represent something of the form "I've chosen one member of this group, three members of that group, and nobody from the other group". A Bag seems right for this, except that if I want to get the list of groups, it doesn't seem to include the one with nobody: > Bag.new-from-pairs(

Re: Bag with explicit 0 elements?

2015-02-28 Thread Elizabeth Mattijsen
> On 28 Feb 2015, at 15:41, Philip Hazelden wrote: > > I'm trying to represent something of the form "I've chosen one member of this > group, three members of that group, and nobody from the other group". A Bag > seems right for this, except that if I want to get the list of groups, it > doesn

Re: Bag with explicit 0 elements?

2015-02-28 Thread Darren Duncan
On 2015-02-28 3:27 PM, Elizabeth Mattijsen wrote: An interesting thought for the non-mutable cases of Set, Bag and Mix. For the mutable cases (SetHash, BagHash, MixHash), setting the element to 0, is effectively deleting it. For the non-mutable case, I guess we could argue that *if* you specif