| 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 dart.core; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A [List] is an indexable collection with a length. | 8 * A [List] is an indexable collection with a length. |
| 9 * | 9 * |
| 10 * A `List` implementation can choose not to support all methods | 10 * A `List` implementation can choose not to support all methods |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 * var list = [1, 2, 3, 4, 5]; | 367 * var list = [1, 2, 3, 4, 5]; |
| 368 * list.replaceRange(1, 3, [6, 7, 8, 9]); | 368 * list.replaceRange(1, 3, [6, 7, 8, 9]); |
| 369 * print(list); // [1, 6, 7, 8, 9, 4, 5] | 369 * print(list); // [1, 6, 7, 8, 9, 4, 5] |
| 370 */ | 370 */ |
| 371 void replaceRange(int start, int end, Iterable<E> iterable); | 371 void replaceRange(int start, int end, Iterable<E> iterable); |
| 372 | 372 |
| 373 /** | 373 /** |
| 374 * Returns an unmodifiable [Map] view of `this`. | 374 * Returns an unmodifiable [Map] view of `this`. |
| 375 * | 375 * |
| 376 * It has the indices of this list as keys, and the corresponding elements | 376 * It has the indices of this list as keys, and the corresponding elements |
| 377 * as values. | 377 * as values. The [Map.keys] [Iterable] will iterate the indices of this list |
| 378 * in numerical order. |
| 378 */ | 379 */ |
| 379 Map<int, E> asMap(); | 380 Map<int, E> asMap(); |
| 380 } | 381 } |
| OLD | NEW |