[squeak-dev] The Trunk: Collections-mt.916.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Oct 14 11:01:22 UTC 2020


Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.916.mcz

==================== Summary ====================

Name: Collections-mt.916
Author: mt
Time: 14 October 2020, 1:01:18.401265 pm
UUID: 49aef966-6542-d34b-881e-a19161e040d4
Ancestors: Collections-ul.915

Prepare refactoring "(do|collect)WithIndex -> withIndex(Do|Collect)". See http://forum.world.st/The-Inbox-60Deprecated-ct-80-mcz-td5120706.html

=============== Diff against Collections-ul.915 ===============

Item was changed:
  ----- Method: HashedCollection>>doWithIndex: (in category 'enumerating') -----
+ doWithIndex: elementAndIndexBlock
+ 	"Use the new version with consistent naming"
+ 	^ self withIndexDo: elementAndIndexBlock!
- doWithIndex: aBlock2
- 	"Support Set enumeration with a counter, even though not ordered"
- 	| index |
- 	index := 0.
- 	self do: [:item | aBlock2 value: item value: (index := index+1)]!

Item was added:
+ ----- Method: HashedCollection>>withIndexDo: (in category 'enumerating') -----
+ withIndexDo: aBlock2
+ 	"Support Set enumeration with a counter, even though not ordered"
+ 	| index |
+ 	index := 0.
+ 	self do: [:item | aBlock2 value: item value: (index := index+1)]!



More information about the Squeak-dev mailing list