Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: sdk/lib/core/iterable.dart

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/collection_dev/list.dart ('k') | sdk/lib/core/list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sdk/lib/collection_dev/list.dart ('k') | sdk/lib/core/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698