Previous: Collection-storing, Up: Collection


1.36.12 Collection: testing collections

capacity
Answer how many elements the receiver can hold before having to grow.


identityIncludes: anObject
Answer whether we include the anObject object


includes: anObject
Answer whether we include anObject


includesAnyOf: aCollection
Answer whether we include any of the objects in aCollection


isEmpty
Answer whether we are (still) empty


isSequenceable
Answer whether the receiver can be accessed by a numeric index with #at:/#at:put:.


notEmpty
Answer whether we include at least one object


occurrencesOf: anObject
Answer how many occurrences of anObject we include


size
Answer how many objects we include