Support of algebraic operations on sets
siguctua at gmail.com
Fri Jun 15 12:39:42 UTC 2007
On 15/06/07, Gary Chambers <gazzaguru2 at btinternet.com> 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