Collection.st
changeset 24611 ce5a30fb0ba3
parent 24603 154e9e58b45e
child 24626 5ed08221bf2a
--- a/Collection.st	Mon Aug 26 09:01:38 2019 +0200
+++ b/Collection.st	Mon Aug 26 09:02:21 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
               All Rights Reserved
@@ -1110,7 +1112,7 @@
 
 addAll:aCollection
     "add all elements of the argument, aCollection to the receiver.
-     Returns the argument, aCollection (sigh)."
+     Returns the argument, aCollection."
 
     aCollection do:[:element |
         self add:element
@@ -4627,7 +4629,7 @@
      passing both element and index as arguments.
      Same as doWithIndex:, due to parallel evolution of different Smalltalk dialects"
 
-    ^ self keysAndValuesDo:[:key :value |
+    self keysAndValuesDo:[:key :value |
         aTwoArgBlock value:value value:key
     ].
 ! !
@@ -4921,7 +4923,7 @@
      Used in #printOn:.
      Subclasses (e.g. Dictionary) may redefine this."
 
-    ^ self do:aBlock
+    self do:aBlock
 
     "Created: / 20.1.1998 / 14:11:02 / stefan"
 !
@@ -4976,7 +4978,7 @@
     aStream nextPut:$)
 
     "
-     #(1 2 3 'hello' $a $ü) printOn:Transcript
+     #(1 2 3 'hello' $a $ü) printOn:Transcript
      (Array new:100000) printOn:Transcript
      (Array new:100000) printOn:Stdout
      (Array new:100000) printString size
@@ -5155,7 +5157,7 @@
     "return true if the receiver includes all elements of
      the argument, aCollection; false if any is missing.
      Notice: depending on the concrete collection,
-             this method may have O² runtime behavior,
+             this method may have O² runtime behavior,
              and may be slow for big receivers/args.
              Think about using a Set, or Dictionary."
 
@@ -5192,7 +5194,7 @@
      Uses #= (value compare)
      Notice: 
         depending on the concrete collection,
-        this method may have O² runtime behavior,
+        this method may have O² runtime behavior,
         and may be slow for big receivers/args.
         Think about using a Set, or Dictionary.
 
@@ -5274,7 +5276,7 @@
      Use identity compare for comparing.
      Notice:
         depending on the concrete collection,
-        this method may have O² runtime behavior for some subclasses
+        this method may have O² runtime behavior for some subclasses
         and may be slow for big receivers/args.
         Think about using a Set or Dictionary.
         Some speedup is also possible, by arranging highly