<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Standard ML - Page 23 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Standard_ML&amp;p=22">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Standard_ML&amp;p=24">3.Next</a>
</p>

<p>This signature describes a module that provides a polymorphic type , , and values that define basic operations on queues.</p>

<p><big>Structures</big></p>
<p>A structure is a module; it consists of a collection of types, exceptions, values and structures (called substructures) packaged together into a logical unit.</p>

<p>A queue structure can be implemented as follows:</p>

<p><syntaxhighlight lang="sml">structure TwoListQueue :> QUEUE = struct    type 'a queue = 'a list * 'a list</syntaxhighlight></p>

<p>    exception QueueError;</p>

<p>    val</p><p>
<a accesskey="1" href="page.php?w=Standard_ML&amp;p=22">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Standard_ML&amp;p=24">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
