Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Side by Side Diff: sdk/lib/core/list.dart

Issue 2974433002: Remaining private libs (Closed)
Patch Set: It's html_common Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/core/iterator.dart ('k') | sdk/lib/core/map.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core.dart"; 5 part of "dart:core";
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/core/iterator.dart ('k') | sdk/lib/core/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698