Chromium Code Reviews| Index: sdk/lib/core/iterator.dart |
| diff --git a/sdk/lib/core/iterator.dart b/sdk/lib/core/iterator.dart |
| index e251df62fb35a052c90f29c69f314d99e64e2bcb..ed7aca9b67a1354b52659e6c7f3456ce0043c959 100644 |
| --- a/sdk/lib/core/iterator.dart |
| +++ b/sdk/lib/core/iterator.dart |
| @@ -5,24 +5,30 @@ |
| part of dart.core; |
| /** |
| - * The [Iterator] class provides methods to iterate over an object. It |
| - * is transparently used by the for-in construct to test for the end |
| - * of the iteration, and to get the elements. |
| + * An interface for getting items, one at a time, from an object. |
| + * |
| + * The for-in construct transparently uses Iterator to test for the end |
|
Lasse Reichstein Nielsen
2016/08/31 18:57:36
`Iterator`
|
| + * of the iteration, and to get each item (or _element_). |
| * |
| * If the object iterated over is changed during the iteration, the |
| * behavior is unspecified. |
| * |
| - * The [Iterator] is initially positioned before the first element. Before |
| + * The Iterator is initially positioned before the first element. Before |
| * accessing the first element the iterator must thus be advanced ([moveNext]) |
| - * to point to the first element. If there is no element left, then [moveNext] |
| + * to point to the first element. If no element is left, then [moveNext] |
| * returns false. |
| * |
| - * A typical usage of an [Iterator] looks as follows: |
| + * A typical usage of an Iterator looks as follows: |
|
Lasse Reichstein Nielsen
2016/08/31 18:57:36
`Iterator`
|
| * |
| * var it = obj.iterator; |
| * while (it.moveNext()) { |
| * use(it.current); |
| * } |
| + * |
| + * **See also:** [Iteration] |
| + * (http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-iteration) |
|
kevmoo
2016/08/31 21:07:51
https please
|
| + * in the [library tour] |
| + * (http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html) |
| */ |
| abstract class Iterator<E> { |
| /** |