You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/gnu-smalltalk/files/SequenceableCollection-size...

24 lines
418 B

--- a/kernel/SeqCollect.st
+++ b/kernel/SeqCollect.st
@@ -1104,9 +1104,16 @@ some access and manipulation methods.'>
^count
]
+ size [
+ "Answer a dummy size of 0, so that SequenceableCollection>>#do: works."
+
+ <category: 'testing collections'>
+ ^0
+ ]
+
growSize [
<category: 'private methods'>
- ^self size
+ ^(self size max: 8)
]
swap: anIndex with: anotherIndex [
--
1.7.2.5