[squeak-dev] The Trunk: Collections-nice.297.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 8 11:23:35 UTC 2010


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!




More information about the Squeak-dev mailing list