[Pkg] The Trunk: Collections-ul.430.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Mar 1 07:26:52 UTC 2011


Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.430.mcz

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

Name: Collections-ul.430
Author: ul
Time: 1 March 2011, 8:26:29.929 am
UUID: 5e9df9e8-bcc4-5d43-818a-5cbc4082988d
Ancestors: Collections-ul.429

- fix: #overlappingPairsCollect: didn't work with OrderedCollections

=============== Diff against Collections-ul.429 ===============

Item was changed:
  ----- Method: SequenceableCollection>>overlappingPairsCollect: (in category 'enumerating') -----
  overlappingPairsCollect: aBlock 
  	"Answer the result of evaluating aBlock with all of the overlapping pairs of my elements."
  	| retval |
+ 	retval := self species ofSize: self size - 1.
- 	retval := self species new: self size - 1.
  	1 to: self size - 1
  		do: [:i | retval at: i put: (aBlock value: (self at: i) value: (self at: i + 1)) ].
  	^retval!



More information about the Packages mailing list