[squeak-dev] The Trunk: Collections-ct.1005.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Apr 2 18:27:35 UTC 2022
Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.1005.mcz
==================== Summary ====================
Name: Collections-ct.1005
Author: ct
Time: 2 April 2022, 8:27:14.574869 pm
UUID: ff06a248-ec0b-7947-982c-accabd65f28e
Ancestors: Collections-ct.1004
Recategorizes SparseLargeTable>>#sparseElementsAndIndicesDo:.
=============== Diff against Collections-ct.1004 ===============
Item was changed:
+ ----- Method: SparseLargeTable>>sparseElementsAndIndicesDo: (in category 'enumerating') -----
- ----- Method: SparseLargeTable>>sparseElementsAndIndicesDo: (in category 'accessing') -----
sparseElementsAndIndicesDo: binaryBlock
"Evaluate binaryBlock for each element and index in the receiver that has a non-default value."
1 to: self basicSize do: [:chunkIndex |
(self basicAt: chunkIndex) ifNotNil: [:chunk |
chunk withIndexDo: [:element :innerIndex |
element ~= defaultValue ifTrue: [
binaryBlock value: element value: innerIndex + base - 1 + (chunkIndex - 1 * chunkSize)]]]].!
More information about the Squeak-dev
mailing list
|