[Pkg] The Trunk: Collections-topa.594.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jan 16 07:49:01 UTC 2015


Tobias Pape uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-topa.594.mcz

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

Name: Collections-topa.594
Author: topa
Time: 16 January 2015, 8:48:38.154 am
UUID: ad0a6bee-b97d-47a5-bd6b-5c32211e8fd4
Ancestors: Collections-mt.593

Add #flattened as alias for #flatten.
The former makes it more clear a copy will be returned (cf. #reversed), the latter is more in line with ANSI names (cf. #reverse) and other languages.

=============== Diff against Collections-mt.593 ===============

Item was added:
+ ----- Method: SequenceableCollection>>flattened (in category 'converting') -----
+ flattened
+ 	"An alias for #flatten
+ 	This message's name is in line with messages like #sorted or #reversed
+ 	while #flatten's is in line with #reverse (as per ANSI, see comment there)"
+ 
+ 	^ self flatten!



More information about the Packages mailing list