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

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

Issue 16285004: Better documentation on Sets and Maps, and more. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: A few more documentation tweaks Created 7 years, 6 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 | Annotate | Revision Log
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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698