| Index: sdk/lib/collection_dev/list.dart
|
| diff --git a/sdk/lib/collection_dev/list.dart b/sdk/lib/collection_dev/list.dart
|
| index 4dc698a16762d1f892d4ea83d5ffeeb9bcc76b3a..10facd6bc62c6a0ed059d7f90609659697108d2c 100644
|
| --- a/sdk/lib/collection_dev/list.dart
|
| +++ b/sdk/lib/collection_dev/list.dart
|
| @@ -10,7 +10,7 @@ part of dart.collection.dev;
|
| * Implements all read-only operations, except [:operator[]:] and [:length:],
|
| * in terms of those two operations.
|
| */
|
| -abstract class ListBase<E> extends Iterable<E> implements List<E> {
|
| +abstract class ListBase<E> extends Collection<E> implements List<E> {
|
| Iterator<E> get iterator => new ListIterator(this);
|
|
|
| void forEach(f(E element)) {
|
| @@ -93,6 +93,18 @@ abstract class ListBase<E> extends Iterable<E> implements List<E> {
|
| return result;
|
| }
|
|
|
| + List mappedBy(f(E element)) {
|
| + return new MappedList(this, f);
|
| + }
|
| +
|
| + List<E> take(int n) {
|
| + return new ListView(this, 0, n);
|
| + }
|
| +
|
| + List<E> skip(int n) {
|
| + return new ListView(this, n, null);
|
| + }
|
| +
|
| String toString() => Collections.collectionToString(this);
|
| }
|
|
|
|
|