--- a/Collection.st Tue Feb 20 01:07:35 2018 +0100
+++ b/Collection.st Thu Feb 22 15:07:13 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
@@ -295,8 +297,6 @@
^ self newWithSize:n
! !
-
-
!Collection class methodsFor:'Signal constants'!
emptyCollectionSignal
@@ -375,7 +375,6 @@
^ self includesIdentical:anObject.
! !
-
!Collection methodsFor:'Compatibility-Squeak'!
, aCollection
@@ -537,9 +536,12 @@
"return ifNotEmptyValue if not empty, ifEmptyValue otherwise"
^ self ifEmpty:ifEmptyValue ifNotEmpty:ifNotEmptyValue
+!
+
+includesAnyOf:anotherCollection
+ ^ self includesAny:anotherCollection
! !
-
!Collection methodsFor:'accessing'!
anElement
@@ -4521,7 +4523,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
@@ -5880,7 +5882,7 @@
includesAll:aCollection
"return true if the receiver includes all elements of
the argument, aCollection; false if any is missing.
- Notice: this method has O² runtime behavior and may be
+ Notice: this method has O² runtime behavior and may be
slow for big receivers/args.
Think about using a Set, or Dictionary."
@@ -5900,7 +5902,7 @@
Return false if it includes none.
Uses #= (value compare)
Notice:
- this method has O² runtime behavior for some subclasses and may be slow for big receivers/args.
+ this method has 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
probable elements towards the beginning of aCollection, to avoid useless searches.
@@ -5977,7 +5979,7 @@
Return false if it includes none.
Use identity compare for comparing.
Notice:
- this method has O² runtime behavior for some subclasses and may be slow for big receivers/args.
+ this method has 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
probable elements towards the beginning of aCollection, to avoid useless searches."
@@ -6193,7 +6195,6 @@
^ aVisitor visitCollection:self with:aParameter
! !
-
!Collection class methodsFor:'documentation'!
version