[FIX] SortedCollectionFix-sr

Richard A. O'Keefe squeak-dev at lists.squeakfoundation.org
Mon Sep 30 03:59:01 UTC 2002


"Andreas Raab" <Andreas.Raab at gmx.de> wrote:
	So, for example, it would be trivial to rewrite
	
	Dictionary>>keysSortedSafely
		^SortedCollection 
			withAll: self keys 
			sortBlock:[...]
	
	SortedCollection class>>withAll: aCollection sortBlock: aBlock 
		"Answer an instance of me such that its elements
		are sorted according to the criterion specified in aBlock."
		^(super new: aCollection size) 
			sortBlock: aBlock; 
			addAll: aCollection
	
	which is much more readable anyways

There's no doubt about that.  Can we please have this method added
to SortedCollection class?  Pretty please?



More information about the Squeak-dev mailing list