title: Queue type in D?
body: <p>Many languages have a queue type (<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Queue.html" rel="nofollow noreferrer">http://docs.oracle.com/javase/7/docs/api/java/util/Queue.html</a>); I am unable to even find a library that implements a queue type (first in, first out data structure).  The lack of a queue surprises me.  Is there a different way that D does a queue?</p>
  
  <p>The syntax I would expect would be similar to this:</p>
  
  <pre><code>//To create
  Queue!string queue = new Queue!string;
  
  //To add
  queue.add("value");
  
  //To access
  string value = queue.get; //will remove from queue
  //or
  foreach (string value; queue) {}
  </code></pre>
  
  <p>How would this be done in D?  Or will I need to implement it myself?</p>