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

Side by Side Diff: sdk/lib/core/iterable.dart

Issue 12286004: Unbreak pub: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/core/list.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * The [Iterable] interface allows to get an [Iterator] out of an 8 * The [Iterable] interface allows to get an [Iterator] out of an
9 * [Iterable] object. 9 * [Iterable] object.
10 * 10 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * 44 *
45 * This method returns a view of the mapped elements. As long as the 45 * This method returns a view of the mapped elements. As long as the
46 * returned [Iterable] is not iterated over, the supplied function [f] will 46 * returned [Iterable] is not iterated over, the supplied function [f] will
47 * not be invoked. The transformed elements will not be cached. Iterating 47 * not be invoked. The transformed elements will not be cached. Iterating
48 * multiple times over the the returned [Iterable] will invoke the supplied 48 * multiple times over the the returned [Iterable] will invoke the supplied
49 * function [f] multiple times on the same element. 49 * function [f] multiple times on the same element.
50 */ 50 */
51 Iterable map(f(E element)) => new MappedIterable<E, dynamic>(this, f); 51 Iterable map(f(E element)) => new MappedIterable<E, dynamic>(this, f);
52 52
53 /** 53 /**
54 * Deprecated alias for [map].
55 */
56 @deprecated
57 Iterable mappedBy(f(E element)) => map(f);
58
59 /**
54 * Returns a lazy [Iterable] with all elements that satisfy the 60 * Returns a lazy [Iterable] with all elements that satisfy the
55 * predicate [f]. 61 * predicate [f].
56 * 62 *
57 * This method returns a view of the mapped elements. As long as the 63 * This method returns a view of the mapped elements. As long as the
58 * returned [Iterable] is not iterated over, the supplied function [f] will 64 * returned [Iterable] is not iterated over, the supplied function [f] will
59 * not be invoked. Iterating will not cache results, and thus iterating 65 * not be invoked. Iterating will not cache results, and thus iterating
60 * multiple times over the the returned [Iterable] will invoke the supplied 66 * multiple times over the the returned [Iterable] will invoke the supplied
61 * function [f] multiple times on the same element. 67 * function [f] multiple times on the same element.
62 */ 68 */
63 Iterable<E> where(bool f(E element)) => new WhereIterable<E>(this, f); 69 Iterable<E> where(bool f(E element)) => new WhereIterable<E>(this, f);
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 */ 438 */
433 abstract class BiDirectionalIterator<T> extends Iterator<T> { 439 abstract class BiDirectionalIterator<T> extends Iterator<T> {
434 /** 440 /**
435 * Move back to the previous element. 441 * Move back to the previous element.
436 * 442 *
437 * Returns true and updates [current] if successful. Returns false 443 * Returns true and updates [current] if successful. Returns false
438 * and sets [current] to null if there is no previous element. 444 * and sets [current] to null if there is no previous element.
439 */ 445 */
440 bool movePrevious(); 446 bool movePrevious();
441 } 447 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/core/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698