Nov. 9, 2018
5:45 p.m.
On Fri, 9 Nov 2018 at 18:38, Gabriel Cotelli <g.cotelli@gmail.com> wrote:
It's bug in the collect: implementation used in String. I've opened https://pharo.fogbugz.com/f/cases/22652/collect-over-Strings-is-broken
Strings store characters, not integers, so change your example to: 'aa' collect: [ :a | $1 ] and you'll see that (I think) it is working as expected. You could do: 'aa' collect: [ :a | 1 ] as: Array. Roelof, revisit your example, taking the above in to account :-) HTH, Alistair