<div><div>I need a Queue (put on the front and pop from the back).  The best I can come up with so far is:</div><div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">    Array!string list;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    list.insertBack("a1");</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    list.insertBefore(list.opSlice(0,1), "a2");</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    list.insertBefore(list.opSlice(0,1), "a3");</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    list.insertBefore(list.opSlice(0,1), "a4");</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    list.insertBefore(list.opSlice(0,1), "a5");</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    while (!list.empty())</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    {</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">        string s = list.back();</font></div><div><font class="Apple-style-span" face="'courier new', monospace">        list.removeBack();</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">        writeln("x: ", s);</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    }</font></div></div>
<div><br></div><div>Having to insertBack when the list empty and insertBefore with the range, seems strange to me. Is there a better way?</div><div><br></div><div>John<br><div><br></div><div><div><br></div><div><br></div>
</div></div></div>