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

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

Issue 11366111: Make Iterable more powerful (and lazy). (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Undo unintended change. Created 8 years, 1 month 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
Index: sdk/lib/core/list.dart
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart
index b4948a3c1680aa616a39f6b605ea2363296015cb..ab9798bd304eaf9c0235c615e9d3fd094f998cee 100644
--- a/sdk/lib/core/list.dart
+++ b/sdk/lib/core/list.dart
@@ -52,9 +52,7 @@ interface List<E> extends Collection<E>, Sequence<E>
void add(E value);
/**
- * Adds [value] at the end of the list, extending the length by
- * one. Throws an [UnsupportedError] if the list is not
- * extendable.
+ * Alias for [add].
Lasse Reichstein Nielsen 2012/11/12 09:38:03 Remove it. It's slightly misnamed (other operation
*/
void addLast(E value);
@@ -129,6 +127,13 @@ interface List<E> extends Collection<E>, Sequence<E>
E get last;
/**
+ * Returns a read-only view of [this].
+ *
+ * The returned [List] will be backed by [this], but cannot change [this].
+ */
+ List<E> get view;
Lasse Reichstein Nielsen 2012/11/12 09:38:03 I still don't think 'view' signifies something inh
+
+ /**
* Returns a new list containing [length] elements from the list,
* starting at [start].
* Returns an empty list if [length] is 0.

Powered by Google App Engine
This is Rietveld 408576698