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

Issue 13548002: Add Iterable.fold (and Stream.fold) which replace `reduce`. (Closed)

Created:
7 years, 8 months ago by floitsch
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org, sra1
Visibility:
Public.

Description

Add Iterable.fold (and Stream.fold) which replace `reduce`. For now this is just a copy. In a next step we will change the behavior of `reduce`. BUG= http://dartbug.com/9536 Committed: https://code.google.com/p/dart/source/detail?r=20978

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -53 lines) Patch
M pkg/http/lib/src/byte_stream.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/test/descriptor/utils.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/process_patch.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/vmstats/bargraph.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/array.dart View 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/lib/typeddata.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
M samples/openglui/src/openglui_canvas_tests.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/swarm/swarm_ui_lib/observable/observable.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_collection_dev/iterable.dart View 2 chunks +8 lines, -0 lines 0 comments Download
M sdk/lib/_collection_dev/list.dart View 1 chunk +4 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/async/stream.dart View 1 chunk +11 lines, -1 line 0 comments Download
M sdk/lib/collection/collections.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/core/iterable.dart View 1 1 chunk +21 lines, -2 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 36 chunks +147 lines, -0 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 36 chunks +147 lines, -0 lines 0 comments Download
M sdk/lib/html/html_common/filtered_element_list.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 5 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/svg/dart2js/svg_dart2js.dart View 6 chunks +24 lines, -0 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 6 chunks +24 lines, -0 lines 0 comments Download
M sdk/lib/web_sql/dart2js/web_sql_dart2js.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/web_sql/dartium/web_sql_dartium.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/corelib/collection_test.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M tests/corelib/list_map_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/corelib/list_reversed_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/html/streams_test.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/lib/async/stream_controller_async_test.dart View 4 chunks +10 lines, -9 lines 0 comments Download
M tests/standalone/io/http_auth_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_compression_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_keep_alive_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_session_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/https_client_certificate_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_client_raw_server_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_client_server_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_multiple_client_server_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_session_resume_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_socket_bad_certificate_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/string_decoder_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/zlib_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M tools/dom/src/CssClassSet.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/dom/src/WrappedList.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 2 chunks +10 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Node.darttemplate View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/dom/templates/immutable_list_mixin.darttemplate View 1 chunk +4 lines, -0 lines 0 comments Download
M utils/pub/io.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
floitsch
7 years, 8 months ago (2013-04-03 15:49:50 UTC) #1
kevmoo-old
DBC https://codereview.chromium.org/13548002/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/13548002/diff/1/sdk/lib/core/iterable.dart#newcode106 sdk/lib/core/iterable.dart:106: * an initial value: `iterable.reduce(min)`. Use [fold] instead. ...
7 years, 8 months ago (2013-04-03 17:45:51 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/13548002/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/13548002/diff/1/sdk/lib/core/iterable.dart#newcode106 sdk/lib/core/iterable.dart:106: * an initial value: `iterable.reduce(min)`. Use [fold] instead. ...
7 years, 8 months ago (2013-04-04 08:35:18 UTC) #3
floitsch
https://codereview.chromium.org/13548002/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/13548002/diff/1/sdk/lib/core/iterable.dart#newcode106 sdk/lib/core/iterable.dart:106: * an initial value: `iterable.reduce(min)`. Use [fold] instead. On ...
7 years, 8 months ago (2013-04-05 16:10:02 UTC) #4
floitsch
Committed patchset #2 manually as r20978 (presubmit successful).
7 years, 8 months ago (2013-04-05 16:13:33 UTC) #5
nweiz
7 years, 8 months ago (2013-04-10 20:32:18 UTC) #6
Message was sent while issue was closed.
On 2013/04/05 16:13:33, floitsch wrote:
> Committed patchset #2 manually as r20978 (presubmit successful).

Why weren't Bob and I cced on this? It touched our code, and in fact seems to
have broken our users:
https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/NB4x7...

Powered by Google App Engine
This is Rietveld 408576698