j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
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!
squeak-dev@lists.squeakfoundation.org