Manuscript (Case [Issue]22652) String - collect: over Strings is broken

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22652) String - collect: over Strings is broken

Pharo Issue Tracker
Manuscript Notification
avatar
Sven Van Caekenberghe edited Case 22652: collect: over Strings is broken:
Bug in Project:  String: 1. Pharo Image  •  You are subscribed to this case
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 Priority: 1 – Show Stopper !!!!!! Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker