Index: sdk/lib/core/iterable.dart |
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart |
index e13f2feedbf516f8d83e55095fe94b08ee6cef60..160e773e574031c479769a02762a3a878e68271c 100644 |
--- a/sdk/lib/core/iterable.dart |
+++ b/sdk/lib/core/iterable.dart |
@@ -27,7 +27,7 @@ abstract class Iterable<E> { |
* with that index to create the next value. |
* |
* As an [Iterable], [:new Iterable.generate(n, generator)):] is equivalent to |
- * [:const [0, ..., n - 1].mappedBy(generator):] |
+ * [:const [0, ..., n - 1].map(generator):] |
*/ |
factory Iterable.generate(int count, E generator(int index)) { |
return new _GeneratorIterable<E>(count, generator); |
@@ -48,7 +48,14 @@ abstract class Iterable<E> { |
* multiple times over the the returned [Iterable] will invoke the supplied |
* function [f] multiple times on the same element. |
*/ |
- Iterable mappedBy(f(E element)) => new MappedIterable<E, dynamic>(this, f); |
+ Iterable map(f(E element)) => new MappedIterable<E, dynamic>(this, f); |
+ |
+ /** |
+ * Deprecated alias for [map]. |
+ * |
+ * @deprecated |
+ */ |
+ Iterable mappedBy(f(E element)) => map(f); |
/** |
* Returns a lazy [Iterable] with all elements that satisfy the |