Re: Iterators and Laziness

2008-11-28 Thread Daniel Ruoso
Timothy S. Nelson wrote: Should laziness/eagerness be a property of the operator? I'm inclined to believe that the level of lazyness or eagerness is determined by the operators in question, at least that had worked for assignment and feeds, I can't think of a case where something else determines

Re: Iterators and Laziness

2008-11-28 Thread Daniel Ruoso
Sex, 2008-11-28 às 14:23 -0300, Daniel Ruoso escreveu: You write: my $item = =$foo; Does that get one item from the iterator object? It depends on the iterator in question, but it certainly gets something (unless the iterator is over, of course), I'm thinking on the following: I thought it

r24104 - docs/Perl6/Spec

2008-11-28 Thread pugs-commits
Author: ruoso Date: 2008-11-28 19:38:22 +0100 (Fri, 28 Nov 2008) New Revision: 24104 Modified: docs/Perl6/Spec/S07-iterators.pod Log: [spec] anything that behaves like a list might implement .Iterator(). And the name is really .Iterator(), not .iterator(); Modified: