<!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="next" href="Reins.ListIterator.From_List.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.Make</title> </head> <body> <div class="navbar"> <a href="Reins.ListIterator.html">Up</a> <a href="Reins.ListIterator.From_List.html">Next</a> </div> <center><h1>Functor <a href="type_Reins.ListIterator.Make.html">Reins.ListIterator.Make</a></h1></center> <br> <pre><span class="keyword">module</span> Make: <div class="sig_block"><code class="code">functor (</code><code class="code">I</code><code class="code"> : </code><code class="type"><a href="Reins.ListCursor.S.html">Reins.ListCursor.S</a></code><code class="code">) -> </code><code class="type"><a href="Reins.ListIterator.S.html">S</a></code><code class="type"> with type 'a collection = 'a I.list_ and type 'a cursor = 'a I.cursor and type 'a elt = 'a</code></div></pre>Create a list iterator from an arbitrary cursor type<br> <table border="0" cellpadding="3" width="100%"> <tr> <td align="left" valign="top" width="1%%"><b>Parameters: </b></td> <td> <table class="paramstable"> <tr> <td align="center" valign="top" width="15%"> <code>I</code></td> <td align="center" valign="top">:</td> <td><code class="type"><a href="Reins.ListCursor.S.html">Reins.ListCursor.S</a></code> </table> </td> </tr> </table> <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>