| 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 indexable collection of objects with a length. | 8 * An indexable collection of objects with a length. |
| 9 * | 9 * |
| 10 * Subclasses of this class implement different kinds of lists. | 10 * Subclasses of this class implement different kinds of lists. |
| 11 * The most common kinds of lists are: | 11 * The most common kinds of lists are: |
| 12 * | 12 * |
| 13 * * Fixed-length list. | 13 * * Fixed-length list. |
| 14 * An error occurs when attempting to use operations | 14 * An error occurs when attempting to use operations |
| 15 * that can change the length of the list. | 15 * that can change the length of the list. |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 * as values. The `Map.keys` [Iterable] iterates the indices of this list | 511 * as values. The `Map.keys` [Iterable] iterates the indices of this list |
| 512 * in numerical order. | 512 * in numerical order. |
| 513 * | 513 * |
| 514 * List<String> words = ['fee', 'fi', 'fo', 'fum']; | 514 * List<String> words = ['fee', 'fi', 'fo', 'fum']; |
| 515 * Map<int, String> map = words.asMap(); | 515 * Map<int, String> map = words.asMap(); |
| 516 * map[0] + map[1]; // 'feefi'; | 516 * map[0] + map[1]; // 'feefi'; |
| 517 * map.keys.toList(); // [0, 1, 2, 3] | 517 * map.keys.toList(); // [0, 1, 2, 3] |
| 518 */ | 518 */ |
| 519 Map<int, E> asMap(); | 519 Map<int, E> asMap(); |
| 520 } | 520 } |
| OLD | NEW |