Comment #5 on issue 3761 by [email protected]: overlappingPairsCollect: fails on OrderedCollections
http://code.google.com/p/pharo/issues/detail?id=3761
Is #streamContents: better, or are there performance implications? overlappingPairsCollect: aBlock"Answer the result of evaluating aBlock with all of the overlapping pairs of my elements."
^ self species streamContents: [ :stream |
1 to: self size - 1
do: [ :i | stream nextPut: (aBlock value: (self at: i) value: (self at:
i + 1)) ]
]
