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

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

Issue 12537009: Rename XMatching to XWhere. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and rebuild dom libraries. Created 7 years, 9 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/core/collection.dart ('k') | sdk/lib/html/dart2js/html_dart2js.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 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;
« no previous file with comments | « sdk/lib/core/collection.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698