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

Unified Diff: lib/core/queue.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 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
« no previous file with comments | « lib/core/list.dart ('k') | lib/core/sequences.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/queue.dart
diff --git a/lib/core/queue.dart b/lib/core/queue.dart
index beff3d7b9942e9e632d43bd9cc999fc8c1fd488c..e217e76bedb4558af743a976bd536d52df4656d4 100644
--- a/lib/core/queue.dart
+++ b/lib/core/queue.dart
@@ -57,13 +57,13 @@ abstract class Queue<E> extends Collection<E> {
* Returns the first element of the queue. Throws an
* [EmptyQueueException] exception if this queue is empty.
*/
- E first();
+ E get first;
/**
* Returns the last element of the queue. Throws an
* [EmptyQueueException] exception if this queue is empty.
*/
- E last();
+ E get last;
/**
* Removes all elements in the queue. The size of the queue becomes zero.
« no previous file with comments | « lib/core/list.dart ('k') | lib/core/sequences.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698