Index: sdk/lib/core/list.dart |
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart |
index 2ab0a06151d43353b71fbb2b382bda05b3108e67..50cf3b161bde0c68e795781bd8e24ca951f30079 100644 |
--- a/sdk/lib/core/list.dart |
+++ b/sdk/lib/core/list.dart |
@@ -85,6 +85,15 @@ 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. |
+ */ |
+ List<T> get reversed => new ReversedList(this, 0, length); |
+ |
+ /** |
* Sorts the list according to the order specified by the [compare] function. |
* |
* The [compare] function must act as a [Comparator]. |