logo       

RE: [FIX] SortedCollectionFix-sr: msg#00789

lang.smalltalk.squeak.general

Subject: RE: [FIX] SortedCollectionFix-sr

"Andreas Raab" <Andreas.Raab@xxxxxx> 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?




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise