Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import 'dart:collection';
  2. main() {
  3. //var q = Queue(); Working fine
  4. Queue q = new Queue();
  5. q.add(2);
  6. q.add(3);
  7.  
  8. print(q); // {2, 3}
  9.  
  10.  
  11. q.addFirst(34);
  12. print(q); // {34, 2, 3}
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement