I agree that enumeration is more useful but it wouldn't be bad to have something in there to indicate the 1-index nature, such as�� 'abcd' at: 2 will result in $b
That's all I was suggesting.
Actually, having some cheat sheet on basic enumeration wouldn't be bad as that is a real strength of Smalltalk. Mention and illustrate what do: collect: and select: do. Then mention that there are other ones like count: and sum:.
Cheers,
Jeff
Le 08/04/2016 22:08, J.F. Rick a ��crit :
> It looks good. I might mention that most data structures are 1 indexed
> as most other languages tend to be 0 indexed and that throws people new
> to the language.
>
I use Pharo since 1 year now and I had to use indexes only 3-4 times. I
think it is more important to say that Pharo have Collections with an
awesome API.
--
Cyril Ferlicot
http://www.synectique.eu
165 Avenue Bretagne
Lille 59000 France