|
I don't think your assumption is correct. I always thought #collect: creates the same collection. There is also #collect:as: if you need to change the type of resulting collection.
<code> 'foo' collect: [ :each | each asUppercase ]. "'FOO'"
'foo' collect: [ :each | each charCode ] as: Array. "#(102 111 111)" </code>
|
|
|
Priority: 1 – Show Stopper !!!!!!
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|