Support of algebraic operations on sets

sig siguctua at
Fri Jun 15 12:39:42 UTC 2007

On 15/06/07, Gary Chambers <gazzaguru2 at> wrote:
> Note that #difference: is the relative complement of the two sets, rather
> than the symmetric difference.
> Perhaps we could have a method for that too!

no, its perfectly fits with algebraic form.
a symmetric difference can be implemented easily:

(a diff: b) union: (b diff:a)
(a union: b) diff: ( a intersection: b )

More information about the Squeak-dev mailing list