lrn@google.com
047b32681d
Create associated packages for the dart:collection and dart:async libs.
...
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//113883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31260 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 11:57:56 +00:00
lrn@google.com
71f2015ed0
Growable typed data buffers.
...
Like growable lists, but with typed data.
Added to package:collection_helpers.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=30396
Reverted: r30412
Committed: https://code.google.com/p/dart/source/detail?r=30514
Review URL: https://codereview.chromium.org//26695002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30569 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 10:31:53 +00:00
lrn@google.com
2b85fb5b37
Revert "Growable typed data buffers."
...
Still some spurious browser failures. Will try again tomorrow.
Review URL: https://codereview.chromium.org//79343010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30521 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 14:28:31 +00:00
lrn@google.com
8ad765ec38
Growable typed data buffers.
...
Like growable lists, but with typed data.
Added to package:collection_helpers.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=30396
Reverted: r30412
Review URL: https://codereview.chromium.org//26695002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30514 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 12:29:52 +00:00
lrn@google.com
893e21ec42
Add queue.removeWhere/retainWhere to wrappers.dart as well.
...
R=floitsch@google.com
Review URL: https://codereview.chromium.org//78093002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30454 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 10:27:47 +00:00
lrn@google.com
cabf7e33c0
Revert "Growable typed data buffers."
...
Some browsers fail on the clamped buffers.
Review URL: https://codereview.chromium.org//74713003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30412 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 13:23:13 +00:00
lrn@google.com
d444060c32
Add explicit cast to avoid bug in analyzer.
...
Review URL: https://codereview.chromium.org//76233003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30405 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:22:48 +00:00
lrn@google.com
33ec174278
Combine unmodifiable_collection package into collection_helpers.
...
Avoids some duplicated code, and makes everything much simpler.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//70073003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30402 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:11:24 +00:00
lrn@google.com
8d3c15767b
Growable typed data buffers.
...
Like growable lists, but with typed data.
Added to package:collection_helpers.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//26695002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30396 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 11:32:35 +00:00
lrn@google.com
9f5cfcee75
Fix type variables for pkg/collection_helpers unordered equality.
...
Review URL: https://codereview.chromium.org//54183010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29727 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 08:28:17 +00:00
lrn@google.com
9946223745
Fix unordered equality to not trigger dart2js typing restriction.
...
BUG= http://dartbug.com/14654
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//46793004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29726 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 08:09:52 +00:00
lrn@google.com
e5ea43d21b
Fix equality type problem.
...
The default equality can't be an Equality<Object> and be assigned to
Equality<T> for any other type T. It must be Equality<dynamic> instead.
Review URL: https://codereview.chromium.org//37003004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29082 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 14:03:42 +00:00
lrn@google.com
3f2810a8ac
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
Review URL: https://codereview.chromium.org//23567044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29072 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 11:42:52 +00:00