The Trunk: Collections-mt.589.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-mt.589.mcz

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

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

Name: Collections-mt.589
Author: mt
Time: 14 January 2015, 11:41:12.144 am
UUID: 0bf76b20-9b1a-2b43-ae6c-57507ce3176d
Ancestors: Collections-bf.588

comment added to #concatenation

=============== Diff against Collections-bf.588 ===============

Item was changed:
  ----- Method: SequenceableCollection>>concatenation (in category 'converting') -----
  concatenation
+ "Flattens the collection by one level into an Array. Avoids using #gather: and #streamContents: for performance reasons."
- |result index|
 
+ | result index |
  result := Array new: (self inject: 0 into: [:sum :each | sum + each size]).
  index := 0.
  self do: [:each | each do: [:item | result at: (index := index+1) put: item]].
+ ^ result!
- ^result!