Bag.st
branchjv
changeset 19103 71257a47eba2
parent 18473 ff8f0323cadd
parent 19081 fce3c0a198c4
child 20345 68e5382ae472
--- a/Bag.st	Thu Jan 21 17:58:19 2016 +0000
+++ b/Bag.st	Sat Jan 23 07:23:05 2016 +0000
@@ -237,21 +237,21 @@
 !
 
 remove:oldObject ifAbsent:anExceptionBlock
-    "Remove oldObject from the collection.
+    "Remove one occurrence of oldObject from the collection.
      If it was not present, return the value of the exceptionBlock;
      otherwise return the removed object.
 
      WARNING: do not add/remove elements while iterating over the receiver.
-	      Iterate over a copy to do this."
+              Iterate over a copy to do this."
 
     |count|
 
     count := contents at:oldObject ifAbsent:0.
     (count == 0) ifTrue:[^ anExceptionBlock value].
     (count == 1) ifTrue:[
-	contents removeKey:oldObject
+        contents removeKey:oldObject
     ] ifFalse:[
-	contents at:oldObject put:(count - 1)
+        contents at:oldObject put:(count - 1)
     ].
     ^ oldObject
 
@@ -554,10 +554,10 @@
 !Bag class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Bag.st,v 1.54 2015-06-08 19:23:24 cg Exp $'
+    ^ '$Header$'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Bag.st,v 1.54 2015-06-08 19:23:24 cg Exp $'
+    ^ '$Header$'
 ! !