SequenceableCollection.st
changeset 20179 d3441fd82fbb
parent 20159 82a4bc9a1def
child 20205 03e626304d06
child 20267 2f7863ac4188
--- a/SequenceableCollection.st	Wed Jul 27 12:56:15 2016 +0200
+++ b/SequenceableCollection.st	Wed Jul 27 15:00:27 2016 +0200
@@ -1139,10 +1139,10 @@
     "append the argument, anObject to the collection.
      Return the argument, anObject.
 
-     Notice, that this modifies the receiver, NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |newSize|
 
@@ -1169,10 +1169,10 @@
     "insert the first argument, anObject into the collection before slot index.
      Return the receiver (sigh - ST-80 compatibility).
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |newSize|
 
@@ -1235,10 +1235,10 @@
     "prepend the argument, anObject to the collection.
      Return the argument, anObject.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |newSize|
 
@@ -1263,16 +1263,16 @@
 !
 
 remove:anElement ifAbsent:aBlock
-    "search for the first occurrrence of object 
+    "search for the first occurrence of object
      (i.e. which is equal to anElement)
-     If found remove and return it; 
+     If found remove and return it;
      if not, return the value from evaluating aBlock.
      Use equality compare (=) to search for an occurrence.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |any foundElement
      dstIndex "{ Class: SmallInteger }"
@@ -1286,7 +1286,7 @@
             (anElement = (foundElement := self at:srcIndex)) ifTrue:[
                 any := true.
                 dstIndex := srcIndex.
-            ]    
+            ]
         ] ifTrue:[
             "/ already copying
             self at:dstIndex put:(self at:srcIndex).
@@ -1359,10 +1359,10 @@
 removeAtIndex:anIndex
     "remove the element stored at anIndex. Return the removed object.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |element|
 
@@ -1380,10 +1380,10 @@
 removeFirst
     "remove the first element of the receiver and return it.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     ^ self removeAtIndex:1
 
@@ -1401,11 +1401,11 @@
      Returning the receiver is a historic leftover - it may at one
      time return a collection of the removed elements.
 
-     Notice, that this is modifies the receiver - NOT a copy;
+     Notice that this modifies the receiver, NOT a copy;
      therefore any other users of the receiver will also see this change.
-     Also note, that it may be a slow operation for some collections,
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     ^ self removeFromIndex:startIndex toIndex:(self size)
 
@@ -1421,11 +1421,11 @@
     "remove the elements stored at indexes between startIndex and endIndex.
      Return the receiver.
 
-     Notice, that this modifies the receiver - NOT a copy;
+     Notice that this modifies the receiver, NOT a copy;
      therefore any other users of the receiver will also see this change.
-     Also note, that it may be a slow operation for some collections,
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |size newSize|
 
@@ -1460,10 +1460,10 @@
      if found remove and return it; if not, return the value from evaluating aBlock.
      Uses identity compare (==) to search for an occurrence.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     |any
      dstIndex "{ Class: SmallInteger }"
@@ -1501,10 +1501,10 @@
 removeIndex:index
     "remove the argument stored at index. Return the receiver.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     self removeFromIndex:index toIndex:index
 
@@ -1518,10 +1518,10 @@
 removeLast
     "remove the last element of the receiver and return it.
 
-     Notice, that this is modifies the receiver NOT a copy.
-     Also note, that it may be a slow operation for some collections,
+     Notice that this modifies the receiver, NOT a copy.
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     ^ self removeAtIndex:(self size)
 
@@ -1537,11 +1537,11 @@
     "remove the elements stored at indexes from 1 to index to the beginning.
      Return the receiver.
 
-     Notice, that this is modifies the receiver - NOT a copy;
+     Notice that this modifies the receiver, NOT a copy;
      therefore any other users of the receiver will also see this change.
-     Also note, that it may be a slow operation for some collections,
+     Also note that it may be a slow operation for some collections,
      due to the grow:-message, which is inefficient for fixed size
-     collections (i.e. for Strings and Arrays it is not recommened)."
+     collections (i.e. for Strings and Arrays it is not recommended)."
 
     ^ self removeFromIndex:1 toIndex:index