#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Tue, 05 Mar 2019 12:30:21 +0100
changeset 4836 2024ae7bafc8
parent 4835 8f8949b8bac9
child 4837 12de5519f0b6
#DOCUMENTATION by stefan class: PluggableSet category of: #copyWithout:
PluggableSet.st
--- a/PluggableSet.st	Sun Mar 03 00:26:40 2019 +0100
+++ b/PluggableSet.st	Tue Mar 05 12:30:21 2019 +0100
@@ -72,20 +72,6 @@
     ^ self new hashWith:hashFunctionArg compareWith:compareFunctionArg
 ! !
 
-!PluggableSet methodsFor:'Compatibility-Squeak'!
-
-copyWithout:anElement
-    "return a new collection consisting of a copy of the receiver, with
-     ALL elements equal to elementToSkip are left out.
-     No error is reported, if elementToSkip is not in the collection."
-
-    ^ self reject:[:each | compareFunction value:each value:anElement]
-
-    "
-     #(1 2 3 4 5 6 7) asSet copyWithout:5
-    "
-! !
-
 !PluggableSet methodsFor:'accessing'!
 
 hashWith:hashFunctionArg compareWith:compareFunctionArg 
@@ -122,6 +108,20 @@
     "
 ! !
 
+!PluggableSet methodsFor:'copying'!
+
+copyWithout:anElement
+    "return a new collection consisting of a copy of the receiver, with
+     ALL elements equal to elementToSkip are left out.
+     No error is reported, if elementToSkip is not in the collection."
+
+    ^ self reject:[:each | compareFunction value:each value:anElement]
+
+    "
+     #(1 2 3 4 5 6 7) asSet copyWithout:5
+    "
+! !
+
 !PluggableSet methodsFor:'private'!
 
 collisionsFor:key