Changeset 24104 for docs/Perl6
- Timestamp:
- 11/28/08 19:38:22 (6 weeks ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/S07-iterators.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/S07-iterators.pod
r24098 r24104 116 116 =head1 The Iterator Role 117 117 118 The iterator role represents the lazy access to a list, walking through 119 one of: 118 The iterator role represents the lazy access to a list, walking through: 120 119 121 120 =over … … 127 126 =item Stream (mostly for IO) 128 127 128 =item In fact, any value that wants to behave like a list 129 129 130 =back 130 131 131 132 It'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 that133 by the .Iterator() method (but only the runtime will be calling that 133 134 most of the time), and the implemenation of each iterator is private 134 135 to the list and implementation specific. 135 136 136 137 This is a minimal API that should allow custom iterator 137 implemen ations, but this spec should be expanded in the future to138 implementations, but this spec should be expanded in the future to 138 139 provide additional API for batch-aware iterators. 139 140
