| Index: sdk/lib/collection_dev/list.dart
|
| diff --git a/sdk/lib/collection_dev/list.dart b/sdk/lib/collection_dev/list.dart
|
| index cddc75a762baf32e1a11c10c169e6481cf8cb964..b8ecef1dc6f14826f08b7e65115f9c2be2e3478d 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);
|
| }
|
|
|
|
|