I don't think that's what's happening. It looks like you're creating an
iterator three times and are trying to get the first element through
each iterator.

Check out what happens when you call .iterator only once:

perl6 -e 'my \a = (gather for ^Inf { take $_ }).iterator; say do for ^3
{ a.pull-one }'
(0 1 2)

It's telling you exactly what's happening: your second call to .iterator
fails because you already got an iterator that already stole the first
element.

I'd be willing to close this as NOTABUG, unless you found this example
in the documentation or something

Hope that helps!
  - Timo

Reply via email to