Chromium Code Reviews| Index: sdk/lib/internal/iterable.dart |
| diff --git a/sdk/lib/internal/iterable.dart b/sdk/lib/internal/iterable.dart |
| index 2bedb48e64644e190efdf3dd1a650af2c097a524..0e7b171e26002c4aa73f57516a1b7246196dee82 100644 |
| --- a/sdk/lib/internal/iterable.dart |
| +++ b/sdk/lib/internal/iterable.dart |
| @@ -426,6 +426,10 @@ class WhereIterable<E> extends Iterable<E> { |
| WhereIterable(this._iterable, bool this._f(E element)); |
| Iterator<E> get iterator => new WhereIterator<E>(_iterable.iterator, _f); |
| + |
| + // Specialization of [Iterable.map] to non-EfficientLength. |
| + Iterable/*<T>*/ map/*<T>*/(/*=T*/ f(E element)) => |
| + new MappedIterable<E, dynamic/*=T*/>._(this, f); |
|
Lasse Reichstein Nielsen
2016/09/21 07:17:13
I don't see why this makes any difference - the me
sra1
2016/09/21 16:26:22
The difference is
new MappedIterable<E, T>(this, f
Lasse Reichstein Nielsen
2016/09/21 19:42:16
Ah, I completely missed that difference :)
|
| } |
| class WhereIterator<E> extends Iterator<E> { |