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

Unified Diff: tool/input_sdk/lib/core/iterable.dart

Issue 1987963003: Misc updates (mostly doc) (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 | « tool/input_sdk/lib/core/int.dart ('k') | tool/input_sdk/lib/core/set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/core/iterable.dart
diff --git a/tool/input_sdk/lib/core/iterable.dart b/tool/input_sdk/lib/core/iterable.dart
index a1967b734fa4765064d7254bd9ef08bd5fccdfd3..cf05cdec4a55bdef6ece8554b8dfa90b4ebe6822 100644
--- a/tool/input_sdk/lib/core/iterable.dart
+++ b/tool/input_sdk/lib/core/iterable.dart
@@ -146,7 +146,7 @@ abstract class Iterable<E> {
* This method returns a view of the mapped elements. As long as the
* returned [Iterable] is not iterated over, the supplied function [f] will
* not be invoked. The transformed elements will not be cached. Iterating
- * multiple times over the the returned [Iterable] will invoke the supplied
+ * multiple times over the returned [Iterable] will invoke the supplied
* function [f] multiple times on the same element.
*
* Methods on the returned iterable are allowed to omit calling `f`
@@ -169,7 +169,8 @@ abstract class Iterable<E> {
* multiple times over the returned [Iterable] will invoke the supplied
* function [test] multiple times on the same element.
*/
- Iterable<E> where(bool f(E element)) => new WhereIterable<E>(this, f);
+ Iterable<E> where(bool test(E element)) =>
+ new WhereIterable<E>(this, test);
/**
* Expands each element of this [Iterable] into zero or more elements.
@@ -434,7 +435,7 @@ abstract class Iterable<E> {
* but skipping over all initial elements where `test(element)` returns
* true. If all elements satisfy `test` the resulting iterable is empty,
* otherwise it iterates the remaining elements in their original order,
- * starting with the first element for which `test(element)` returns false,
+ * starting with the first element for which `test(element)` returns false.
*/
Iterable<E> skipWhile(bool test(E value)) {
return new SkipWhileIterable<E>(this, test);
« no previous file with comments | « tool/input_sdk/lib/core/int.dart ('k') | tool/input_sdk/lib/core/set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698