just playing around:<br><br>(#(1 2 3) asSet) difference:&nbsp; (#(1 2 3 4 5) asSet)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a Set()<br>(#(1 2 3 9) asSet) intersection:&nbsp; (#(1 2 3 4 5) asSet)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a Set(1 2 3)<br>(#(1 2 3 9) asSet) copyWithoutAll:&nbsp; (#(1 2 3 4 5) asSet)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a Set(9)
<br>(#(1 2 3 4 5) asSet) copyWithoutAll:&nbsp; (#(1 2 3 9) asSet)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a Set(5 4)<br>(#(1 2 3 4 5) asSet) union:&nbsp; (#(1 2 3 9) asSet)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a Set(1 2 3 4 5 9)<br><br><br>I think you&#39;dlike&nbsp;&nbsp; aSet (4 5 9)<br><br>
| set1 set2 difference |<br>set1 := #(1 2 3 9) asSet.<br>set2 := #(1 2 3 4 5) asSet.<br>difference := (set1 union: set2) copyWithoutAll: (set1 intersection: set2)<br><br><br>or<br>| set1 set2 difference |<br>set1 := #(1 2 3 9) asSet.
<br>set2 := #(1 2 3 4 5) asSet.<br>difference := (set1 copyWithoutAll: set2) addAll: (set2 copyWithoutAll: set1)<br><br><br>That&#39;s just a quick try...<br><br>Cédrick<br><br><br><br><div><span class="gmail_quote">2007/12/12, itsme213 &lt;
<a href="mailto:itsme213@hotmail.com">itsme213@hotmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What collection type / message should I use for set difference? I can&#39;t seem
<br>to find any :-(<br><br>Sophie<br><br><br><br><br></blockquote></div><br>