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

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

Issue 12221044: Revert "Hide collection-dev library." (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_dev/collection_dev_sources.gypi ('k') | sdk/lib/collection_dev/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._collection.dev; 5 part of dart.collection.dev;
6 6
7 typedef T _Transformation<S, T>(S value); 7 typedef T _Transformation<S, T>(S value);
8 8
9 class MappedIterable<S, T> extends Iterable<T> { 9 class MappedIterable<S, T> extends Iterable<T> {
10 final Iterable<S> _iterable; 10 final Iterable<S> _iterable;
11 // TODO(ahe): Restore type when feature is implemented in dart2js 11 // TODO(ahe): Restore type when feature is implemented in dart2js
12 // checked mode. http://dartbug.com/7733 12 // checked mode. http://dartbug.com/7733
13 final /* _Transformation<S, T> */ _f; 13 final /* _Transformation<S, T> */ _f;
14 14
15 MappedIterable(this._iterable, T this._f(S element)); 15 MappedIterable(this._iterable, T this._f(S element));
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 674
675 Set toSet() => new Set<E>(); 675 Set toSet() => new Set<E>();
676 } 676 }
677 677
678 /** The always empty iterator. */ 678 /** The always empty iterator. */
679 class EmptyIterator<E> implements Iterator<E> { 679 class EmptyIterator<E> implements Iterator<E> {
680 const EmptyIterator(); 680 const EmptyIterator();
681 bool moveNext() => false; 681 bool moveNext() => false;
682 E get current => null; 682 E get current => null;
683 } 683 }
OLDNEW
« no previous file with comments | « sdk/lib/collection_dev/collection_dev_sources.gypi ('k') | sdk/lib/collection_dev/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698