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

Issue 11366111: Make Iterable more powerful (and lazy). (Closed)

Created:
8 years, 1 month ago by floitsch
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org, Mads Ager (google)
Visibility:
Public.

Description

Make Iterable more powerful (and lazy).

Patch Set 1 #

Patch Set 2 : Make it lazy. #

Patch Set 3 : Update comments. #

Total comments: 2

Patch Set 4 : Add queryable interface. #

Patch Set 5 : Undo unintended change. #

Total comments: 32

Patch Set 6 : Address some comments. #

Patch Set 7 : Extendable -> extensible. #

Patch Set 8 : Fix current. was in Iterable and not Iterator. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -113 lines) Patch
M runtime/lib/array.dart View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M sdk/lib/collection/collections.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/core/collection.dart View 1 2 3 4 5 6 1 chunk +3 lines, -82 lines 0 comments Download
M sdk/lib/core/core.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/core/corelib_sources.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/core/iterable.dart View 1 2 3 4 5 6 7 1 chunk +106 lines, -10 lines 0 comments Download
sdk/lib/core/iterator.dart View 1 2 3 4 5 6 7 1 chunk +16 lines, -5 lines 0 comments Download
M sdk/lib/core/list.dart View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M sdk/lib/core/map.dart View 1 2 3 4 5 2 chunks +17 lines, -4 lines 0 comments Download
A sdk/lib/core/queryable.dart View 1 2 3 4 5 1 chunk +98 lines, -0 lines 0 comments Download
M sdk/lib/core/sequences.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/core/set.dart View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
floitsch
First draft of the lazy iterable conversion. Patch-set 1 only moves functions. (so if you ...
8 years, 1 month ago (2012-11-06 17:41:43 UTC) #1
Anders Johnsen
LGTM, Maybe List.from(Collection<E> other) should be List.from(Iterable<E> other) now? https://codereview.chromium.org/11366111/diff/4/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/11366111/diff/4/sdk/lib/core/iterable.dart#newcode12 sdk/lib/core/iterable.dart:12: ...
8 years, 1 month ago (2012-11-06 17:51:47 UTC) #2
Mads Ager (google)
LGTM Are you going to put this in on the branch and then fix the ...
8 years, 1 month ago (2012-11-07 07:13:19 UTC) #3
Lasse Reichstein Nielsen
STV https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/iterable.dart#newcode21 sdk/lib/core/iterable.dart:21: Queryable<E> query(); Make it a getter. Even if ...
8 years, 1 month ago (2012-11-12 09:38:03 UTC) #4
floitsch
PTAL.
8 years, 1 month ago (2012-11-12 10:23:49 UTC) #5
Lasse Reichstein Nielsen
On 2012/11/12 10:23:49, floitsch wrote: > PTAL. LGTM with comments still stands :)
8 years, 1 month ago (2012-11-14 14:09:02 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/collection.dart File sdk/lib/core/collection.dart (right): https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/collection.dart#newcode12 sdk/lib/core/collection.dart:12: * Might throw an [UnsupportedError] if [this] is not ...
8 years, 1 month ago (2012-11-14 14:09:11 UTC) #7
floitsch
https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/collection.dart File sdk/lib/core/collection.dart (right): https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/collection.dart#newcode12 sdk/lib/core/collection.dart:12: * Might throw an [UnsupportedError] if [this] is not ...
8 years, 1 month ago (2012-11-16 22:31:07 UTC) #8
Lasse Reichstein Nielsen
8 years, 1 month ago (2012-11-19 13:36:08 UTC) #9
https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/iterable.dart
File sdk/lib/core/iterable.dart (right):

https://codereview.chromium.org/11366111/diff/4013/sdk/lib/core/iterable.dart...
sdk/lib/core/iterable.dart:21: Queryable<E> query();
But it IS a noun ?!? :)

Powered by Google App Engine
This is Rietveld 408576698