March 1, 2011
10:52 a.m.
Comment #5 on issue 3761 by edoua...@gmail.com: 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)) ] ]