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

Issue 24740003: Add List.shuffle(). (Closed)

Created:
7 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add List.shuffle(). Will add tests too. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=28206

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add tests. Fix typos. #

Total comments: 2

Patch Set 3 : Adddress comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -9 lines) Patch
M editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart View 2 chunks +5 lines, -1 line 0 comments Download
M pkg/analyzer_experimental/lib/src/generated/java_core.dart View 2 chunks +5 lines, -1 line 0 comments Download
M pkg/third_party/html5lib/lib/src/list_proxy.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/unmodifiable_collection/lib/unmodifiable_collection.dart View 3 chunks +4 lines, -3 lines 0 comments Download
M runtime/lib/array.dart View 2 chunks +9 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/typed_data.dart View 1 1 chunk +5 lines, -1 line 0 comments Download
M sdk/lib/_collection_dev/collection_dev.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_collection_dev/iterable.dart View 1 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/_collection_dev/list.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/lib/js_array.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/collection/collection.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/collection/list.dart View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/core/list.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 4 chunks +16 lines, -0 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 5 chunks +19 lines, -3 lines 0 comments Download
A tests/corelib/shuffle_test.dart View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
M third_party/pkg/js/lib/src/wrapping/js/array_to_list_adapter.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/dom/src/ImmutableListMixin.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 2 chunks +8 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Node.darttemplate View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Lasse Reichstein Nielsen
I hope I have all the "implements List" covered. We should see if some could ...
7 years, 2 months ago (2013-09-26 13:02:36 UTC) #1
rakudrama
https://codereview.chromium.org/24740003/diff/1/sdk/lib/collection/list.dart File sdk/lib/collection/list.dart (right): https://codereview.chromium.org/24740003/diff/1/sdk/lib/collection/list.dart#newcode305 sdk/lib/collection/list.dart:305: Random random = new Random(); This needs to be ...
7 years, 2 months ago (2013-09-26 13:33:25 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/24740003/diff/1/sdk/lib/collection/list.dart File sdk/lib/collection/list.dart (right): https://codereview.chromium.org/24740003/diff/1/sdk/lib/collection/list.dart#newcode305 sdk/lib/collection/list.dart:305: Random random = new Random(); On 2013/09/26 13:33:25, ...
7 years, 2 months ago (2013-09-26 14:25:21 UTC) #3
rakudrama
On 2013/09/26 14:25:21, floitsch wrote: > LGTM. > > https://codereview.chromium.org/24740003/diff/1/sdk/lib/collection/list.dart > File sdk/lib/collection/list.dart (right): > ...
7 years, 2 months ago (2013-09-26 14:50:54 UTC) #4
floitsch
On 2013/09/26 14:50:54, rakudrama wrote: > On 2013/09/26 14:25:21, floitsch wrote: > > LGTM. > ...
7 years, 2 months ago (2013-09-26 15:06:23 UTC) #5
kevmoo-old
> > > > The benchmark was just an example. > > The statement about ...
7 years, 2 months ago (2013-09-26 15:45:39 UTC) #6
floitsch
On 2013/09/26 15:45:39, kevmoo wrote: > > > > > > The benchmark was just ...
7 years, 2 months ago (2013-09-27 08:59:27 UTC) #7
Lasse Reichstein Nielsen
Added test. Fixed typos. PTAL.
7 years, 2 months ago (2013-09-27 09:30:03 UTC) #8
floitsch
LGTM. https://codereview.chromium.org/24740003/diff/11001/tests/corelib/shuffle_test.dart File tests/corelib/shuffle_test.dart (right): https://codereview.chromium.org/24740003/diff/11001/tests/corelib/shuffle_test.dart#newcode55 tests/corelib/shuffle_test.dart:55: if (--remaining == 0) { move remaining-- into ...
7 years, 2 months ago (2013-09-27 10:59:43 UTC) #9
Lasse Reichstein Nielsen
https://codereview.chromium.org/24740003/diff/11001/tests/corelib/shuffle_test.dart File tests/corelib/shuffle_test.dart (right): https://codereview.chromium.org/24740003/diff/11001/tests/corelib/shuffle_test.dart#newcode55 tests/corelib/shuffle_test.dart:55: if (--remaining == 0) { On 2013/09/27 10:59:43, floitsch ...
7 years, 2 months ago (2013-09-27 12:35:05 UTC) #10
Lasse Reichstein Nielsen
7 years, 2 months ago (2013-10-03 11:09:25 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r28206 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698