[squeak-dev] Intersection of Bags
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Jan 5 17:48:59 UTC 2023
Nice finding! Probably we should override all #difference: #intersection: #symmetricDifference: #union: in Bag to have multiset semantics.
Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Stéphane Rollandin <lecteur at zogotounga.net>
Gesendet: Donnerstag, 5. Januar 2023 17:18:58
An: liste [Squeak-dev]
Betreff: [squeak-dev] Intersection of Bags
Hello all,
We have
(Bag with: 1 with: 1 with: 1) intersection: (Bag with: 1)
-->
(Bag with: 1 with: 1 with: 1)
and:
(Bag with: 1) intersection: (Bag with: 1 with: 1 with: 1)
-->
(Bag with: 1)
Is that a bug or a feature?
I would expect (Bag with: 1) in both cases.
Stef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230105/770f6ec5/attachment.html>
More information about the Squeak-dev
mailing list
|