Commit Graph

11 Commits

Author SHA1 Message Date
nweiz@google.com 75a0128a52 Add a QueueList class to the collection package.
This class is based on the ListQueue implementation and implements both the
Queue and List interfaces.

R=lrn@google.com

Review URL: https://codereview.chromium.org//660373002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41467 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-03 20:39:26 +00:00
nweiz@google.com 1e8bfffdf6 Add a CanonicalizedMap class to pkg/collection.
BUG=18708
R=lrn@google.com

Review URL: https://codereview.chromium.org//350183010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37908 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-01 21:22:01 +00:00
lrn@google.com 1ec6c5c1db Revert "Add "last" setter to List."
After discussion, we decided not to change the List interface for something that is just a convenience.

Also revert "Mark pkgbuild/pkg/collection as failing when using repository packages"

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//331833003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37307 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-13 09:40:22 +00:00
lrn@google.com f528beb9f2 Add "last" setter to List.
This allows assigning directly as `list.last = value` instead of
having to use the longer `list[list.length - 1] = value`.
It's just an abbreviation, like `list.last` is for reading.

If you use a List as a stack (which is a perfectly good use of it),
modifying the last element like this is a natural operation.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//315173005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37255 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-12 08:11:22 +00:00
nweiz@google.com 39ba6367e7 Add MapKeySet and MapValueSet to the collection package.
These classes provide Set views that are implemented as Maps under the
covers.

BUG=18705
R=floitsch@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//277563007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36447 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 20:25:52 +00:00
kevmoo@google.com 4ad14f8935 pkg/collection: fix version
updated unittest max version
removed unused import

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//182153002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33090 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 21:22:22 +00:00
lrn@google.com 30c0d67807 Add toString to delegating collections in package:collection.
BUG= http://dartbug.com/16274
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//141703009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32057 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 09:31:46 +00:00
lrn@google.com 4719012afc Reduce running time of priority queue test.
R=ricow@google.com

Review URL: https://codereview.chromium.org//128033003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31605 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 12:37:38 +00:00
lrn@google.com 9701b33281 Add priority queue to package:collection.
R=ajohnsen@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//110483006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31532 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 07:58:57 +00:00
lrn@google.com e6e524063c Add missing files from previous commit.
Review URL: https://codereview.chromium.org//118783004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31268 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:57:38 +00:00
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