Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > ac00cb96767d9c54367b331f839b9a30 > files > 346

ocaml-batteries-2.1-3.mga4.x86_64.rpm

<!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="BatSet.Incubator.html">
<link rel="Up" href="BatSet.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 class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.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="BatArray" rel="Chapter" href="BatArray.html">
<link title="BatAvlTree" rel="Chapter" href="BatAvlTree.html">
<link title="BatBase64" rel="Chapter" href="BatBase64.html">
<link title="BatBig_int" rel="Chapter" href="BatBig_int.html">
<link title="BatBigarray" rel="Chapter" href="BatBigarray.html">
<link title="BatBitSet" rel="Chapter" href="BatBitSet.html">
<link title="BatBool" rel="Chapter" href="BatBool.html">
<link title="BatBounded" rel="Chapter" href="BatBounded.html">
<link title="BatBuffer" rel="Chapter" href="BatBuffer.html">
<link title="BatCache" rel="Chapter" href="BatCache.html">
<link title="BatChar" rel="Chapter" href="BatChar.html">
<link title="BatCharParser" rel="Chapter" href="BatCharParser.html">
<link title="BatComplex" rel="Chapter" href="BatComplex.html">
<link title="BatConcurrent" rel="Chapter" href="BatConcurrent.html">
<link title="BatDeque" rel="Chapter" href="BatDeque.html">
<link title="BatDigest" rel="Chapter" href="BatDigest.html">
<link title="BatDllist" rel="Chapter" href="BatDllist.html">
<link title="BatDynArray" rel="Chapter" href="BatDynArray.html">
<link title="BatEnum" rel="Chapter" href="BatEnum.html">
<link title="BatFile" rel="Chapter" href="BatFile.html">
<link title="BatFingerTree" rel="Chapter" href="BatFingerTree.html">
<link title="BatFloat" rel="Chapter" href="BatFloat.html">
<link title="BatFormat" rel="Chapter" href="BatFormat.html">
<link title="BatGc" rel="Chapter" href="BatGc.html">
<link title="BatGenlex" rel="Chapter" href="BatGenlex.html">
<link title="BatGlobal" rel="Chapter" href="BatGlobal.html">
<link title="BatHashcons" rel="Chapter" href="BatHashcons.html">
<link title="BatHashtbl" rel="Chapter" href="BatHashtbl.html">
<link title="BatHeap" rel="Chapter" href="BatHeap.html">
<link title="BatIMap" rel="Chapter" href="BatIMap.html">
<link title="BatIO" rel="Chapter" href="BatIO.html">
<link title="BatISet" rel="Chapter" href="BatISet.html">
<link title="BatInnerIO" rel="Chapter" href="BatInnerIO.html">
<link title="BatInnerPervasives" rel="Chapter" href="BatInnerPervasives.html">
<link title="BatInnerWeaktbl" rel="Chapter" href="BatInnerWeaktbl.html">
<link title="BatInt" rel="Chapter" href="BatInt.html">
<link title="BatInt32" rel="Chapter" href="BatInt32.html">
<link title="BatInt64" rel="Chapter" href="BatInt64.html">
<link title="BatInterfaces" rel="Chapter" href="BatInterfaces.html">
<link title="BatLazyList" rel="Chapter" href="BatLazyList.html">
<link title="BatLexing" rel="Chapter" href="BatLexing.html">
<link title="BatList" rel="Chapter" href="BatList.html">
<link title="BatLog" rel="Chapter" href="BatLog.html">
<link title="BatLogger" rel="Chapter" href="BatLogger.html">
<link title="BatMap" rel="Chapter" href="BatMap.html">
<link title="BatMarshal" rel="Chapter" href="BatMarshal.html">
<link title="BatMultiMap" rel="Chapter" href="BatMultiMap.html">
<link title="BatMultiPMap" rel="Chapter" href="BatMultiPMap.html">
<link title="BatMutex" rel="Chapter" href="BatMutex.html">
<link title="BatNativeint" rel="Chapter" href="BatNativeint.html">
<link title="BatNum" rel="Chapter" href="BatNum.html">
<link title="BatNumber" rel="Chapter" href="BatNumber.html">
<link title="BatOo" rel="Chapter" href="BatOo.html">
<link title="BatOptParse" rel="Chapter" href="BatOptParse.html">
<link title="BatOption" rel="Chapter" href="BatOption.html">
<link title="BatOrd" rel="Chapter" href="BatOrd.html">
<link title="BatParserCo" rel="Chapter" href="BatParserCo.html">
<link title="BatPathGen" rel="Chapter" href="BatPathGen.html">
<link title="BatPervasives" rel="Chapter" href="BatPervasives.html">
<link title="BatPrintexc" rel="Chapter" href="BatPrintexc.html">
<link title="BatPrintf" rel="Chapter" href="BatPrintf.html">
<link title="BatQueue" rel="Chapter" href="BatQueue.html">
<link title="BatRMutex" rel="Chapter" href="BatRMutex.html">
<link title="BatRandom" rel="Chapter" href="BatRandom.html">
<link title="BatRef" rel="Chapter" href="BatRef.html">
<link title="BatRefList" rel="Chapter" href="BatRefList.html">
<link title="BatResult" rel="Chapter" href="BatResult.html">
<link title="BatReturn" rel="Chapter" href="BatReturn.html">
<link title="BatScanf" rel="Chapter" href="BatScanf.html">
<link title="BatSeq" rel="Chapter" href="BatSeq.html">
<link title="BatSet" rel="Chapter" href="BatSet.html">
<link title="BatSplay" rel="Chapter" href="BatSplay.html">
<link title="BatStack" rel="Chapter" href="BatStack.html">
<link title="BatStream" rel="Chapter" href="BatStream.html">
<link title="BatString" rel="Chapter" href="BatString.html">
<link title="BatSubstring" rel="Chapter" href="BatSubstring.html">
<link title="BatSys" rel="Chapter" href="BatSys.html">
<link title="BatText" rel="Chapter" href="BatText.html">
<link title="BatTuple" rel="Chapter" href="BatTuple.html">
<link title="BatUChar" rel="Chapter" href="BatUChar.html">
<link title="BatUTF8" rel="Chapter" href="BatUTF8.html">
<link title="BatUnit" rel="Chapter" href="BatUnit.html">
<link title="BatUnix" rel="Chapter" href="BatUnix.html">
<link title="BatUref" rel="Chapter" href="BatUref.html">
<link title="BatVect" rel="Chapter" href="BatVect.html">
<link title="Batteries" rel="Chapter" href="Batteries.html">
<link title="BatteriesConfig" rel="Chapter" href="BatteriesConfig.html">
<link title="BatteriesPrint" rel="Chapter" href="BatteriesPrint.html">
<link title="BatteriesThread" rel="Chapter" href="BatteriesThread.html">
<link title="Extlib" rel="Chapter" href="Extlib.html"><link title="Boilerplate code" rel="Section" href="#6_Boilerplatecode">
<link title="Override modules" rel="Section" href="#6_Overridemodules">
<link title="Printing" rel="Subsection" href="#7_Printing">
<title>Batteries user guide : BatSet.Make</title>
</head>
<body>
<div class="navbar">&nbsp;<a class="up" href="BatSet.html" title="BatSet">Up</a>
&nbsp;<a class="post" href="BatSet.Incubator.html" title="BatSet.Incubator">Next</a>
</div>
<h1>Functor <a href="type_BatSet.Make.html">BatSet.Make</a></h1>

<pre><span class="keyword">module</span> Make: <div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">Ord</span></code><code class="code"> : </code><code class="type"><a href="BatSet.OrderedType.html">OrderedType</a></code><code class="code">) <span class="keywordsign">-&gt;</span> </code><code class="type"><a href="BatSet.S.html">S</a></code><code class="type">  with type elt = Ord.t</code></div></pre><div class="info module top">
Functor building an implementation of the set structure
    given a totally ordered type.<br>
</div>
<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>Ord</code></td>
<td align="center" valign="top">:</td>
<td><code class="type"><a href="BatSet.OrderedType.html">OrderedType</a></code>
</table>
</td>
</tr>
</table>
<hr width="100%">

<pre><span id="TYPEelt"><span class="keyword">type</span> <code class="type"></code>elt</span> </pre>
<div class="info ">
The type of the set elements.<br>
</div>


<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<div class="info ">
The type of sets.<br>
</div>


<pre><span id="VALempty"><span class="keyword">val</span> empty</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
The empty set.<br>
</div>

<pre><span id="VALis_empty"><span class="keyword">val</span> is_empty</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
Test whether a set is empty or not.<br>
</div>

<pre><span id="VALsingleton"><span class="keyword">val</span> singleton</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">singleton x</code> returns the one-element set containing only <code class="code">x</code>.<br>
</div>

<pre><span id="VALmem"><span class="keyword">val</span> mem</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
<code class="code">mem x s</code> tests whether <code class="code">x</code> belongs to the set <code class="code">s</code>.<br>
</div>

<pre><span id="VALfind"><span class="keyword">val</span> find</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a></code></pre><div class="info ">
<code class="code">find x s</code> returns the element in s that tests equal to <code class="code">x</code> under its comparison function.<br>
<b>Raises</b> <code>Not_found</code> if no element is equal<br>
</div>

<pre><span id="VALadd"><span class="keyword">val</span> add</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">add x s</code> returns a set containing all elements of <code class="code">s</code>,
      plus <code class="code">x</code>. If <code class="code">x</code> was already in <code class="code">s</code>, <code class="code">s</code> is returned unchanged.<br>
</div>

<pre><span id="VALremove"><span class="keyword">val</span> remove</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">remove x s</code> returns a set containing all elements of <code class="code">s</code>,
      except <code class="code">x</code>. If <code class="code">x</code> was not in <code class="code">s</code>, <code class="code">s</code> is returned unchanged.<br>
</div>

<pre><span id="VALunion"><span class="keyword">val</span> union</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
Set union.<br>
</div>

<pre><span id="VALinter"><span class="keyword">val</span> inter</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
Set intersection.<br>
</div>

<pre><span id="VALdiff"><span class="keyword">val</span> diff</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
Set difference.<br>
</div>

<pre><span id="VALsym_diff"><span class="keyword">val</span> sym_diff</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">sym_diff s t</code> returns the set of all elements in <code class="code">s</code> or <code class="code">t</code>
	but not both.  This is the same as <code class="code">diff (union s t) (inter s
	t)</code>.<br>
</div>

<pre><span id="VALcompare"><span class="keyword">val</span> compare</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> int</code></pre><div class="info ">
Total ordering between sets. Can be used as the ordering function
	for doing sets of sets.<br>
</div>

<pre><span id="VALequal"><span class="keyword">val</span> equal</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
<code class="code">equal s1 s2</code> tests whether the sets <code class="code">s1</code> and <code class="code">s2</code> are
      equal, that is, contain equal elements.<br>
</div>

<pre><span id="VALsubset"><span class="keyword">val</span> subset</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
<code class="code">subset s1 s2</code> tests whether the set <code class="code">s1</code> is a subset of
      the set <code class="code">s2</code>.<br>
</div>

<pre><span id="VALdisjoint"><span class="keyword">val</span> disjoint</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
<code class="code">disjoint s1 s2</code> tests whether the sets <code class="code">s1</code> and <code class="code">s2</code> contain no shared
      elements. (i.e. <code class="code">inter s1 s2</code> is empty.)<br>
</div>

<pre><span id="VALcompare_subset"><span class="keyword">val</span> compare_subset</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> int</code></pre><div class="info ">
Partial ordering between sets as generated by <code class="code">subset</code><br>
</div>

<pre><span id="VALiter"><span class="keyword">val</span> iter</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> unit) -> <a href="BatSet.S.html#TYPEt">t</a> -> unit</code></pre><div class="info ">
<code class="code">iter f s</code> applies <code class="code">f</code> in turn to all elements of <code class="code">s</code>.
      The elements of <code class="code">s</code> are presented to <code class="code">f</code> in increasing order
      with respect to the ordering over the type of the elements.<br>
</div>

<pre><span id="VALmap"><span class="keyword">val</span> map</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEelt">elt</a>) -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">map f x</code> creates a new set with elements <code class="code">f a0</code>,
	  <code class="code">f a1</code>... <code class="code">f aN</code>, where <code class="code">a0</code>,<code class="code">a1</code>..<code class="code">aN</code> are the
	  values contained in <code class="code">x</code><br>
</div>

<pre><span id="VALfilter"><span class="keyword">val</span> filter</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> bool) -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">filter p s</code> returns the set of all elements in <code class="code">s</code>
      that satisfy predicate <code class="code">p</code>.<br>
</div>

<pre><span id="VALfilter_map"><span class="keyword">val</span> filter_map</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEelt">elt</a> option) -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">filter_map f m</code> combines the features of <code class="code">filter</code> and
	  <code class="code">map</code>.  It calls calls <code class="code">f a0</code>, <code class="code">f a1</code>, <code class="code">f aN</code> where <code class="code">a0</code>,<code class="code">a1</code>..<code class="code">aN</code>
	  are the elements of <code class="code">m</code> and returns the set of pairs <code class="code">bi</code>
	  such as <code class="code">f ai = <span class="constructor">Some</span> bi</code> (when <code class="code">f</code> returns <code class="code"><span class="constructor">None</span></code>, the
	  corresponding element of <code class="code">m</code> is discarded).<br>
</div>

<pre><span id="VALfold"><span class="keyword">val</span> fold</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> 'a -> 'a) -> <a href="BatSet.S.html#TYPEt">t</a> -> 'a -> 'a</code></pre><div class="info ">
<code class="code">fold f s a</code> computes <code class="code">(f xN ... (f x1 (f x0 a))...)</code>,
	  where <code class="code">x0</code>,<code class="code">x1</code>..<code class="code">xN</code> are the elements of <code class="code">s</code>, in increasing order.<br>
</div>

<pre><span id="VALfor_all"><span class="keyword">val</span> for_all</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> bool) -> <a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
<code class="code">for_all p s</code> checks if all elements of the set
      satisfy the predicate <code class="code">p</code>.<br>
</div>

<pre><span id="VALexists"><span class="keyword">val</span> exists</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> bool) -> <a href="BatSet.S.html#TYPEt">t</a> -> bool</code></pre><div class="info ">
<code class="code">exists p s</code> checks if at least one element of
      the set satisfies the predicate <code class="code">p</code>.<br>
</div>

<pre><span id="VALpartition"><span class="keyword">val</span> partition</span> : <code class="type">(<a href="BatSet.S.html#TYPEelt">elt</a> -> bool) -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> * <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">partition p s</code> returns a pair of sets <code class="code">(s1, s2)</code>, where
      <code class="code">s1</code> is the set of all the elements of <code class="code">s</code> that satisfy the
      predicate <code class="code">p</code>, and <code class="code">s2</code> is the set of all the elements of
      <code class="code">s</code> that do not satisfy <code class="code">p</code>.<br>
</div>

<pre><span id="VALsplit"><span class="keyword">val</span> split</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEt">t</a> * bool * <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">split x s</code> returns a triple <code class="code">(l, present, r)</code>, where
        <code class="code">l</code> is the set of elements of <code class="code">s</code> that are
        strictly less than <code class="code">x</code>;
        <code class="code">r</code> is the set of elements of <code class="code">s</code> that are
        strictly greater than <code class="code">x</code>;
        <code class="code">present</code> is <code class="code"><span class="keyword">false</span></code> if <code class="code">s</code> contains no element equal to <code class="code">x</code>,
        or <code class="code"><span class="keyword">true</span></code> if <code class="code">s</code> contains an element equal to <code class="code">x</code>.<br>
</div>

<pre><span id="VALcardinal"><span class="keyword">val</span> cardinal</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> int</code></pre><div class="info ">
Return the number of elements of a set.<br>
</div>

<pre><span id="VALelements"><span class="keyword">val</span> elements</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a> list</code></pre><div class="info ">
Return the list of all elements of the given set.
      The returned list is sorted in increasing order with respect
      to the ordering <code class="code"><span class="constructor">Ord</span>.compare</code>, where <code class="code"><span class="constructor">Ord</span></code> is the argument
      given to <code class="code"><span class="constructor">Set</span>.<span class="constructor">Make</span></code>.<br>
</div>

<pre><span id="VALmin_elt"><span class="keyword">val</span> min_elt</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a></code></pre><div class="info ">
Return the smallest element of the given set
      (with respect to the <code class="code"><span class="constructor">Ord</span>.compare</code> ordering).<br>
<b>Raises</b> <code>Not_found</code> if the set is empty.<br>
</div>

<pre><span id="VALmax_elt"><span class="keyword">val</span> max_elt</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a></code></pre><div class="info ">
Same as <code class="code"><span class="constructor">Set</span>.<span class="constructor">S</span>.min_elt</code>, but returns the largest element of the
      given set.<br>
</div>

<pre><span id="VALchoose"><span class="keyword">val</span> choose</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a></code></pre><div class="info ">
Return one element of the given set, or raise <code class="code"><span class="constructor">Not_found</span></code> if
      the set is empty. Which element is chosen is unspecified,
      but equal elements will be chosen for equal sets.<br>
</div>

<pre><span id="VALpop"><span class="keyword">val</span> pop</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a> * <a href="BatSet.S.html#TYPEt">t</a></code></pre><div class="info ">
returns one element of the set and the set without that element.<br>
<b>Raises</b> <code>Not_found</code> if given an empty set<br>
</div>

<pre><span id="VALenum"><span class="keyword">val</span> enum</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a> <a href="BatEnum.html#TYPEt">BatEnum.t</a></code></pre><div class="info ">
Return an enumeration of all elements of the given set.
	  The returned enumeration is sorted in increasing order with respect
	  to the ordering <code class="code"><span class="constructor">Ord</span>.compare</code>, where <code class="code"><span class="constructor">Ord</span></code> is the argument
	  given to <code class="code"><span class="constructor">Set</span>.<span class="constructor">Make</span></code>.<br>
</div>

<pre><span id="VALbackwards"><span class="keyword">val</span> backwards</span> : <code class="type"><a href="BatSet.S.html#TYPEt">t</a> -> <a href="BatSet.S.html#TYPEelt">elt</a> <a href="BatEnum.html#TYPEt">BatEnum.t</a></code></pre><div class="info ">
Return an enumeration of all elements of the given set.
	  The returned enumeration is sorted in decreasing order with respect
	  to the ordering <code class="code"><span class="constructor">Ord</span>.compare</code>, where <code class="code"><span class="constructor">Ord</span></code> is the argument
	  given to <code class="code"><span class="constructor">Set</span>.<span class="constructor">Make</span></code>.<br>
</div>

<pre><span id="VALof_enum"><span class="keyword">val</span> of_enum</span> : <code class="type"><a href="BatSet.S.html#TYPEelt">elt</a> <a href="BatEnum.html#TYPEt">BatEnum.t</a> -> <a href="BatSet.S.html#TYPEt">t</a></code></pre><br>
<h6 id="6_Boilerplatecode">Boilerplate code</h6><br>
<br>
<div class="h7" id="7_Printing">Printing</div><br>

<pre><span id="VALprint"><span class="keyword">val</span> print</span> : <code class="type">?first:string -><br>       ?last:string -><br>       ?sep:string -><br>       ('a <a href="BatInnerIO.html#TYPEoutput">BatInnerIO.output</a> -> <a href="BatSet.S.html#TYPEelt">elt</a> -> unit) -><br>       'a <a href="BatInnerIO.html#TYPEoutput">BatInnerIO.output</a> -> <a href="BatSet.S.html#TYPEt">t</a> -> unit</code></pre><br>
<h6 id="6_Overridemodules">Override modules</h6><br>
<br>
The following modules replace functions defined in <code class="code"><span class="constructor">Set</span></code> with functions
     behaving slightly differently but having the same name. This is by design:
     the functions meant to override the corresponding functions of <code class="code"><span class="constructor">Set</span></code>.<br>

<pre><span class="keyword">module</span> <a href="BatSet.S.Exceptionless.html">Exceptionless</a>: <code class="code"><span class="keyword">sig</span></code> <a href="BatSet.S.Exceptionless.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info">
Operations on <code class="code"><span class="constructor">Set</span></code> without exceptions.
</div>

<pre><span class="keyword">module</span> <a href="BatSet.S.Labels.html">Labels</a>: <code class="code"><span class="keyword">sig</span></code> <a href="BatSet.S.Labels.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info">
Operations on <code class="code"><span class="constructor">Set</span></code> with labels.
</div>
</body></html>