OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
6 * Contains functions that are included by default in [PolymerExpressions]. | 6 * Contains functions that are included by default in [PolymerExpressions]. |
7 * | 7 * |
8 * - [enumerate]: a convenient way to iterate over items and the indexes. | 8 * - [enumerate]: a convenient way to iterate over items and the indexes. |
9 */ | 9 */ |
10 // Code from https://github.com/google/quiver-dart/commit/52edc4baf37e99ff6a8f99
c648b29b135fc0b880 | 10 // Code from https://github.com/google/quiver-dart/commit/52edc4baf37e99ff6a8f99
c648b29b135fc0b880 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 bool moveNext() { | 69 bool moveNext() { |
70 if (_iterator.moveNext()) { | 70 if (_iterator.moveNext()) { |
71 _current = new IndexedValue(_index++, _iterator.current); | 71 _current = new IndexedValue(_index++, _iterator.current); |
72 return true; | 72 return true; |
73 } | 73 } |
74 _current = null; | 74 _current = null; |
75 return false; | 75 return false; |
76 } | 76 } |
77 } | 77 } |
OLD | NEW |