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

Issue 23567044: Add collection-helpers library. (Closed)

Created:
7 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, Brian Wilkerson
Visibility:
Public.

Description

Add collection-helpers library. Library contains: - Delegating wrappers for Iterable, List, Set, Queue, Map. - Equality abstraction, with ordered and unordered equality of collections, and a deep equality. - Algorithms on collections (List only so far) with - shuffle - binary search - insertion-sort - merge-sort Planning to add Tim-sort eventually. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=29072

Patch Set 1 #

Total comments: 25

Patch Set 2 : Addressed some comments. #

Total comments: 4

Patch Set 3 : Addressed my own comments. #

Total comments: 2

Patch Set 4 : Changing ~/ 2 to >> 1. #

Total comments: 22

Patch Set 5 : Address comments. Merge to trunk. Update expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1762 lines, -0 lines) Patch
A pkg/collection_helpers/lib/algorithms.dart View 1 2 3 4 1 chunk +301 lines, -0 lines 0 comments Download
A pkg/collection_helpers/lib/all.dart View 1 1 chunk +18 lines, -0 lines 0 comments Download
A pkg/collection_helpers/lib/equality.dart View 1 2 3 4 1 chunk +419 lines, -0 lines 0 comments Download
A pkg/collection_helpers/lib/wrappers.dart View 1 2 3 4 1 chunk +322 lines, -0 lines 0 comments Download
A pkg/collection_helpers/pubspec.yaml View 1 chunk +6 lines, -0 lines 0 comments Download
A pkg/collection_helpers/test/algorithms_test.dart View 1 2 1 chunk +271 lines, -0 lines 0 comments Download
A pkg/collection_helpers/test/equality_test.dart View 1 2 3 4 1 chunk +164 lines, -0 lines 0 comments Download
A pkg/collection_helpers/test/wrapper_test.dart View 1 1 chunk +255 lines, -0 lines 0 comments Download
M pkg/pkg.status View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-18 11:45:51 UTC) #1
Lasse Reichstein Nielsen
https://codereview.chromium.org/23567044/diff/1/pkg/collection_helpers/lib/algorithms.dart File pkg/collection_helpers/lib/algorithms.dart (right): https://codereview.chromium.org/23567044/diff/1/pkg/collection_helpers/lib/algorithms.dart#newcode48 pkg/collection_helpers/lib/algorithms.dart:48: bool location: false Consider having three different versions: - ...
7 years, 3 months ago (2013-09-18 13:39:25 UTC) #2
justinfagnani
https://codereview.chromium.org/23567044/diff/1/pkg/collection_helpers/lib/wrappers.dart File pkg/collection_helpers/lib/wrappers.dart (right): https://codereview.chromium.org/23567044/diff/1/pkg/collection_helpers/lib/wrappers.dart#newcode25 pkg/collection_helpers/lib/wrappers.dart:25: DelegatingIterable(Iterable<E> base) : _base = base; FYI, we had ...
7 years, 3 months ago (2013-09-19 17:57:52 UTC) #3
Lasse Reichstein Nielsen
On 2013/09/19 17:57:52, justinfagnani wrote: > I argued for an abstract getter named 'delegate' mainly ...
7 years, 3 months ago (2013-09-20 07:59:03 UTC) #4
kevmoo-old
DBR https://codereview.chromium.org/23567044/diff/1/pkg/collection_helpers/lib/algorithms.dart File pkg/collection_helpers/lib/algorithms.dart (right): https://codereview.chromium.org/23567044/diff/1/pkg/collection_helpers/lib/algorithms.dart#newcode74 pkg/collection_helpers/lib/algorithms.dart:74: void shuffle(List list, [int start = 0, int ...
7 years, 3 months ago (2013-09-20 21:34:35 UTC) #5
floitsch
FYI. I couldn't see equality.dart. seems like an upload error. We should see if we ...
7 years, 3 months ago (2013-09-21 18:12:37 UTC) #6
Lasse Reichstein Nielsen
Odd about equality.dart - the patch file is there, but side-by-side view is broken (and ...
7 years, 2 months ago (2013-09-24 20:23:53 UTC) #7
Lasse Reichstein Nielsen
https://codereview.chromium.org/23567044/diff/12001/pkg/collection_helpers/lib/equality.dart File pkg/collection_helpers/lib/equality.dart (right): https://codereview.chromium.org/23567044/diff/12001/pkg/collection_helpers/lib/equality.dart#newcode31 pkg/collection_helpers/lib/equality.dart:31: * `equals(a, b)` then `hash(a) == hashCodeOf(b)`. hashCodeOf(b) -> ...
7 years, 2 months ago (2013-09-27 09:22:25 UTC) #8
Lasse Reichstein Nielsen
Equality is here now, PTAL. https://codereview.chromium.org/23567044/diff/12001/pkg/collection_helpers/lib/algorithms.dart File pkg/collection_helpers/lib/algorithms.dart (right): https://codereview.chromium.org/23567044/diff/12001/pkg/collection_helpers/lib/algorithms.dart#newcode48 pkg/collection_helpers/lib/algorithms.dart:48: bool location: false I'll ...
7 years, 2 months ago (2013-10-03 11:17:32 UTC) #9
Lasse Reichstein Nielsen
https://codereview.chromium.org/23567044/diff/18001/pkg/collection_helpers/lib/algorithms.dart File pkg/collection_helpers/lib/algorithms.dart (right): https://codereview.chromium.org/23567044/diff/18001/pkg/collection_helpers/lib/algorithms.dart#newcode66 pkg/collection_helpers/lib/algorithms.dart:66: * A sub-range of a list can be shuffled ...
7 years, 2 months ago (2013-10-08 08:56:55 UTC) #10
floitsch
LGTM. https://codereview.chromium.org/23567044/diff/22001/pkg/collection_helpers/lib/algorithms.dart File pkg/collection_helpers/lib/algorithms.dart (right): https://codereview.chromium.org/23567044/diff/22001/pkg/collection_helpers/lib/algorithms.dart#newcode34 pkg/collection_helpers/lib/algorithms.dart:34: * is unpredicatable. unpredictable https://codereview.chromium.org/23567044/diff/22001/pkg/collection_helpers/lib/algorithms.dart#newcode66 pkg/collection_helpers/lib/algorithms.dart:66: * A ...
7 years, 2 months ago (2013-10-17 12:17:52 UTC) #11
Lasse Reichstein Nielsen
I had to mark a test as failing in the analyzer. I couldn't find any ...
7 years, 2 months ago (2013-10-23 11:42:39 UTC) #12
Lasse Reichstein Nielsen
7 years, 2 months ago (2013-10-23 11:43:01 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 manually as r29072 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698