Support of algebraic operations on sets
Klaus D. Witzel
klaus.witzel at cobss.com
Fri Jun 15 16:21:07 UTC 2007
On Fri, 15 Jun 2007 18:04:19 +0200, sig wrote:
>> So you do (aDict keys op: bDict keys)? Is any #op: you need for that not
>> in Set and its superclasses?
> No its not. But i'd rather like to see aDict op: bDict with same
aDict := Dictionary with: $a->1 with: $c->2.
bDict := Dictionary with: $b->3 with: $c->4.
aDict union: bDict
=> a Dictionary($a->1 $b->3 $c->4 )
Why would anybody be happy with $c->4, I expected $c->2. You see what I
mean (when I wrote earlier that no cDict can hold the "correct" values)?
The expected result is application specific, no?
More information about the Squeak-dev