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

Issue 11727007: Add min and max to Iterable and Stream. (Closed)

Created:
7 years, 11 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add min and max to Iterable and Stream. R=ajohnsen@google.com Committed: https://code.google.com/p/dart/source/detail?r=16572

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address review comments. Fix T->E in Iterable. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1472 lines, -4 lines) Patch
M runtime/lib/array.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/lib/byte_array.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M samples/swarm/swarm_ui_lib/observable/observable.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_array.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/tree/nodes.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/async/stream.dart View 1 1 chunk +58 lines, -0 lines 1 comment Download
M sdk/lib/collection/collections.dart View 1 chunk +26 lines, -0 lines 0 comments Download
M sdk/lib/core/iterable.dart View 1 1 chunk +46 lines, -0 lines 2 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 56 chunks +723 lines, -0 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 36 chunks +367 lines, -0 lines 0 comments Download
M sdk/lib/html/html_common/filtered_element_list.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Element.darttemplate View 2 chunks +16 lines, -0 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Node.darttemplate View 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/html/templates/immutable_list_mixin.darttemplate View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/svg/dart2js/svg_dart2js.dart View 6 chunks +60 lines, -0 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 6 chunks +60 lines, -0 lines 0 comments Download
A tests/corelib/iterable_min_max_test.dart View 1 chunk +73 lines, -0 lines 0 comments Download
M tools/html_json_doc/lib/json_to_html.dart View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
7 years, 11 months ago (2013-01-02 10:32:12 UTC) #1
Anders Johnsen
LGTM https://codereview.chromium.org/11727007/diff/1/runtime/lib/byte_array.dart File runtime/lib/byte_array.dart (right): https://codereview.chromium.org/11727007/diff/1/runtime/lib/byte_array.dart#newcode326 runtime/lib/byte_array.dart:326: int min([int compare(int a, int b)]) => Collections.min(this, ...
7 years, 11 months ago (2013-01-02 11:04:05 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/11727007/diff/1/runtime/lib/byte_array.dart File runtime/lib/byte_array.dart (right): https://codereview.chromium.org/11727007/diff/1/runtime/lib/byte_array.dart#newcode326 runtime/lib/byte_array.dart:326: int min([int compare(int a, int b)]) => Collections.min(this, compare); ...
7 years, 11 months ago (2013-01-02 11:49:33 UTC) #3
Sean Eagan
7 years, 11 months ago (2013-01-02 16:35:13 UTC) #4
Message was sent while issue was closed.
Glad to see this!  Noticed a couple bugs.

https://codereview.chromium.org/11727007/diff/6001/sdk/lib/async/stream.dart
File sdk/lib/async/stream.dart (right):

https://codereview.chromium.org/11727007/diff/6001/sdk/lib/async/stream.dart#...
sdk/lib/async/stream.dart:305: * Otherwise the result is an value from the
stream that is not greater
greater -> less ?

https://codereview.chromium.org/11727007/diff/6001/sdk/lib/core/iterable.dart
File sdk/lib/core/iterable.dart (right):

https://codereview.chromium.org/11727007/diff/6001/sdk/lib/core/iterable.dart...
sdk/lib/core/iterable.dart:166: while (it.moveNext) {
it.moveNext()

https://codereview.chromium.org/11727007/diff/6001/sdk/lib/core/iterable.dart...
sdk/lib/core/iterable.dart:189: while (it.moveNext) {
it.moveNext()

Powered by Google App Engine
This is Rietveld 408576698