Index: sdk/lib/core/iterable.dart |
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart |
index 8b276c076080bd7e208c3e8de1f21ea7ab287ec3..cb5a469e62d2171365886640f5914747572b5ff2 100644 |
--- a/sdk/lib/core/iterable.dart |
+++ b/sdk/lib/core/iterable.dart |
@@ -323,7 +323,7 @@ abstract class Iterable<E> { |
* returned. By default, when [orElse] is `null`, a [StateError] is |
* thrown. |
*/ |
- E firstMatching(bool test(E value), { E orElse() }) { |
+ E firstWhere(bool test(E value), { E orElse() }) { |
// TODO(floitsch): check that arguments are of correct type? |
for (E element in this) { |
if (test(element)) return element; |
@@ -339,7 +339,7 @@ abstract class Iterable<E> { |
* returned. By default, when [orElse] is [:null:], a [StateError] is |
* thrown. |
*/ |
- E lastMatching(bool test(E value), {E orElse()}) { |
+ E lastWhere(bool test(E value), {E orElse()}) { |
// TODO(floitsch): check that arguments are of correct type? |
E result = null; |
bool foundMatching = false; |
@@ -358,7 +358,7 @@ abstract class Iterable<E> { |
* Returns the single element that satisfies [f]. If no or more than one |
* element match then a [StateError] is thrown. |
*/ |
- E singleMatching(bool test(E value)) { |
+ E singleWhere(bool test(E value)) { |
// TODO(floitsch): check that argument is of correct type? |
E result = null; |
bool foundMatching = false; |