The Trunk: Collections-nice.297.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-nice.297.mcz

commits-2
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.297.mcz

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

Name: Collections-nice.297
Author: nice
Time: 8 February 2010, 12:23:19.105 pm
UUID: b7fadee6-f78e-004e-8d4d-1f2679ef5c1c
Ancestors: Collections-nice.296

Optimized Array inject:into: implementation

=============== Diff against Collections-nice.296 ===============

Item was added:
+ ----- Method: ArrayedCollection>>inject:into: (in category 'enumerating') -----
+ inject: anObject into: aBlock
+ "Optimized for speed. See super."
+
+ | result |
+ result := anObject.
+ 1 to: self size do: [:i | result := aBlock value: result value: (self at: i)].
+ ^result!