|
IMHO It doesn't matter what Strings are storing, collect: is for transformation. The usual case is to return another kind of object, not necessarily the same kind. There's other similar cases, for example
|sorted|
sorted := #(1 2 -5 0) asSortedCollection:[:a :b | a sign <= b sign ].
sorted collect: [ :number | number asString ]
will return an OrderedCollection, even when sorted is a SortedCollection
|
|
|
Priority: 1 – Show Stopper !!!!!!
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|