#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Tue, 18 Jul 2017 13:29:02 +0200
changeset 22056 f868bb1ba9a8
parent 22055 221af6bb04d4
child 22057 81d9be75ba96
#DOCUMENTATION by cg class: SequenceableCollection comment/format in: #replaceAllForWhich:with:
SequenceableCollection.st
--- a/SequenceableCollection.st	Tue Jul 18 11:37:07 2017 +0200
+++ b/SequenceableCollection.st	Tue Jul 18 13:29:02 2017 +0200
@@ -5498,15 +5498,28 @@
      therefore the change may affect all others referencing the receiver."
 
     self
-	replaceAllForWhich:aConditionBlock with:newObject
-	from:1 to:(self size)
+        replaceAllForWhich:aConditionBlock with:newObject
+        from:1 to:(self size)
 
     "
      args:    aConditionBlock  : <block>
-	      newObject        : <object>
+              newObject        : <object>
 
      returns: self
     "
+    
+    "
+     ('bla',Character tab,'bla',Character cr,'bla') 
+        replaceAllForWhich:[ch: ch isSeparator]
+        with:(Character space)
+
+     ('bla',Character tab,'bla',Character cr,'bla') 
+        replaceAllForWhich:#isSeparator
+        with:(Character space)
+
+    "
+
+    "Modified (format): / 18-07-2017 / 13:28:45 / cg"
 !
 
 replaceAllForWhich:aConditionBlock with:newObject from:startIndex to:stopIndex