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

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

Issue 12087103: Revert "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 160e773e574031c479769a02762a3a878e68271c..e13f2feedbf516f8d83e55095fe94b08ee6cef60 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].map(generator):]
+ * [:const [0, ..., n - 1].mappedBy(generator):]
*/
factory Iterable.generate(int count, E generator(int index)) {
return new _GeneratorIterable<E>(count, generator);
@@ -48,14 +48,7 @@ abstract class Iterable<E> {
* multiple times over the the returned [Iterable] will invoke the supplied
* function [f] multiple times on the same element.
*/
- Iterable map(f(E element)) => new MappedIterable<E, dynamic>(this, f);
-
- /**
- * Deprecated alias for [map].
- *
- * @deprecated
- */
- Iterable mappedBy(f(E element)) => map(f);
+ Iterable mappedBy(f(E element)) => new MappedIterable<E, dynamic>(this, 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