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

Unified Diff: sdk/lib/collection/queue.dart

Issue 26681002: Add EfficientLength marker interface to some iterabels. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/collection/queue.dart
diff --git a/sdk/lib/collection/queue.dart b/sdk/lib/collection/queue.dart
index 1cacd18c18fc158784ff2fd0692a4b06e3e8a80d..91410ba0f87bc095e87046d5493b6780a8ae4f62 100644
--- a/sdk/lib/collection/queue.dart
+++ b/sdk/lib/collection/queue.dart
@@ -9,7 +9,7 @@ part of dart.collection;
* can iterate over the elements of a queue through [forEach] or with
* an [Iterator].
*/
-abstract class Queue<E> implements Iterable<E> {
+abstract class Queue<E> implements Iterable<E>, EfficientLength {
sra1 2013/10/09 21:16:53 This is what is scary about tag interfaces. They a
floitsch 2013/10/10 13:04:53 I partially agree. However we already did "is Queu
sra1 2013/10/10 17:02:41 There are many interesting queue algorithms that d
floitsch 2013/10/10 17:12:05 The List interface specifies that its length must
/**
* Creates a queue.

Powered by Google App Engine
This is Rietveld 408576698