| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart.core; | 5 part of "core.dart"; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * An interface for getting items, one at a time, from an object. | 8 * An interface for getting items, one at a time, from an object. |
| 9 * | 9 * |
| 10 * The for-in construct transparently uses `Iterator` to test for the end | 10 * The for-in construct transparently uses `Iterator` to test for the end |
| 11 * of the iteration, and to get each item (or _element_). | 11 * of the iteration, and to get each item (or _element_). |
| 12 * | 12 * |
| 13 * If the object iterated over is changed during the iteration, the | 13 * If the object iterated over is changed during the iteration, the |
| 14 * behavior is unspecified. | 14 * behavior is unspecified. |
| 15 * | 15 * |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 * element, or if the iterator has been moved past the last element of the | 53 * element, or if the iterator has been moved past the last element of the |
| 54 * [Iterable]. | 54 * [Iterable]. |
| 55 * | 55 * |
| 56 * The `current` getter should keep its value until the next call to | 56 * The `current` getter should keep its value until the next call to |
| 57 * [moveNext], even if an underlying collection changes. | 57 * [moveNext], even if an underlying collection changes. |
| 58 * After a successful call to `moveNext`, the user doesn't need to cache | 58 * After a successful call to `moveNext`, the user doesn't need to cache |
| 59 * the current value, but can keep reading it from the iterator. | 59 * the current value, but can keep reading it from the iterator. |
| 60 */ | 60 */ |
| 61 E get current; | 61 E get current; |
| 62 } | 62 } |
| OLD | NEW |