<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="Up" href="Reins.ListIterator.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Reins" rel="Chapter" href="Reins.html"><title>Reins.ListIterator.S</title> </head> <body> <div class="navbar"> <a href="Reins.ListIterator.html">Up</a> </div> <center><h1>Module type <a href="type_Reins.ListIterator.S.html">Reins.ListIterator.S</a></h1></center> <br> <pre><span class="keyword">module type</span> S = <code class="code">sig</code> <a href="Reins.ListIterator.S.html">..</a> <code class="code">end</code></pre>The signature for an iterator over a List.<br> <hr width="100%"> <br><code><span id="TYPEdirection_"><span class="keyword">type</span> <code class="type"></code>direction_</span> = </code><table class="typetable"> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span class="constructor">Left_Right</span></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span class="constructor">Right_Left</span></code></td> </tr></table> <div class="info"> List iterators support only two directions. <code class="code">Left_Right</code> iterates through the list in the forward direction, visiting the head of the list before the tail. <code class="code">Right_Left</code> is the opposite. It iterates through all elements in the tail before visiting the head.<br> </div> <pre><span class="keyword">include</span> <a href="Reins.Iterator.S.html">Reins.Iterator.S</a></pre> </body></html>