I don't think we do. Do you need it on SequenceableCollection or HashedCollection too ?

Recently I was trying to iterate over the first N elements of a collection and since there was no #first:do: I used #from:to:do:. I guess you could use that too:

aCollection from: 1 to: (aCollection size min: 1000) do: aBlock

Which guarantees you iterate at max over 1000 elements. But that API is SequenceableCollection specific.

On Sun, Jan 21, 2018 at 11:44 AM, Ben Coman <btc@openinworld.com> wrote:
On 21 January 2018 at 18:36, Stephane Ducasse <stepharo.self@gmail.com> wrote:
> Hi
>
> I would like to iterate at max on a certain amount of elements in a collection.
> And I was wondering if we have such iterator.

I'm not clear what functionality your asking for.�� Could you present
it as code & result if you assumed the iterator you want was
available?

cheers -ben




--
Cl��ment B��ra
Pharo consortium engineer
https://clementbera.wordpress.com/
B��timent B 40, avenue Halley 59650��Villeneuve d'Ascq