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

Unified Diff: sdk/lib/core/list.dart

Issue 12262037: Make List.skip, List.take and List.reversed return Iterables, not Lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments, small fixes. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/list.dart
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart
index 10ba3e054fc25864cae93e793d8731a9376c1b99..ecb5535b50e380640a36a5ca9917836c1ca02ecf 100644
--- a/sdk/lib/core/list.dart
+++ b/sdk/lib/core/list.dart
@@ -77,13 +77,9 @@ abstract class List<E> implements Collection<E> {
void addAll(Iterable<E> iterable);
/**
- * Returns a reversed fixed-length view of this [List].
- *
- * The reversed list has elements in the opposite order of this list.
- * It is backed by this list, but will stop working if this list
- * becomes shorter than its current length.
+ * Returns an [Iterable] of the elements of this [List] in reverse order.
*/
- List<E> get reversed;
+ Iterable<E> get reversed;
/**
* Sorts the list according to the order specified by the [compare] function.
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698