|
RE: [FIX] SortedCollectionFix-sr: msg#00789lang.smalltalk.squeak.general
"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> |
|---|---|---|
| Previous by Date: | Re: [FIX] SortedCollectionFix-sr, Richard A. O'Keefe |
|---|---|
| Next by Date: | [ENH] converse-raok, ok |
| Previous by Thread: | Re: [FIX] SortedCollectionFix-sr, Richard A. O'Keefe |
| Next by Thread: | Re: [FIX] SortedCollectionFix-sr, Richard A. O'Keefe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |