Changeset 24104 for docs/Perl6

Show
Ignore:
Timestamp:
11/28/08 19:38:22 (6 weeks ago)
Author:
ruoso
Message:

[spec] anything that behaves like a list might implement .Iterator(). And the name is really .Iterator(), not .iterator();

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/Perl6/Spec/S07-iterators.pod

    r24098 r24104  
    116116=head1 The Iterator Role 
    117117 
    118 The iterator role represents the lazy access to a list, walking through  
    119 one of: 
     118The iterator role represents the lazy access to a list, walking through: 
    120119 
    121120=over 
     
    127126=item Stream (mostly for IO) 
    128127 
     128=item In fact, any value that wants to behave like a list 
     129 
    129130=back 
    130131 
    131132It's important to realize that the iterator of a list can be accessed 
    132 by the .iterator() method (but only the runtime will be calling that 
     133by the .Iterator() method (but only the runtime will be calling that 
    133134most of the time), and the implemenation of each iterator is private 
    134135to the list and implementation specific. 
    135136 
    136137This is a minimal API that should allow custom iterator 
    137 implemenations, but this spec should be expanded in the future to 
     138implementations, but this spec should be expanded in the future to 
    138139provide additional API for batch-aware iterators. 
    139140