Chromium Code Reviews| 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 be choose not to support all methods | 10 * A `List` implementation can be choose not to support all methods |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 * Throws an [UnsupportedError] if the list is | 247 * Throws an [UnsupportedError] if the list is |
| 248 * not extendable. | 248 * not extendable. |
| 249 * If [length] is 0, this method does not do anything. | 249 * If [length] is 0, this method does not do anything. |
| 250 * If [start] is the length of the list, this method inserts the | 250 * If [start] is the length of the list, this method inserts the |
| 251 * range at the end of the list. | 251 * range at the end of the list. |
| 252 * Throws an [ArgumentError] if [length] is negative. | 252 * Throws an [ArgumentError] if [length] is negative. |
| 253 * Throws an [RangeError] if [start] is negative or if | 253 * Throws an [RangeError] if [start] is negative or if |
| 254 * [start] is greater than the length of the list. | 254 * [start] is greater than the length of the list. |
| 255 */ | 255 */ |
| 256 void insertRange(int start, int length, [E fill]); | 256 void insertRange(int start, int length, [E fill]); |
| 257 | |
| 258 /** | |
| 259 * Returns a [Map] view of `this`. | |
|
Lasse Reichstein Nielsen
2013/03/04 08:28:37
Unmodifiable?
floitsch
2013/03/04 16:50:20
Done.
| |
| 260 * | |
| 261 * The returned map has the integers `0` to `length - 1` as keys and this | |
| 262 * list as values. | |
|
Lasse Reichstein Nielsen
2013/03/04 08:28:37
It has the indices of this list as keys, and the c
floitsch
2013/03/04 16:50:20
Done.
| |
| 263 */ | |
| 264 Map<int, E> asMap(); | |
| 257 } | 265 } |
| OLD | NEW |