<!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="previous" href="BatTuple.Tuple2.html"> <link rel="next" href="BatTuple.Tuple4.html"> <link rel="Up" href="BatTuple.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"><title>Batteries user guide : BatTuple.Tuple3</title> </head> <body> <div class="navbar"><a class="pre" href="BatTuple.Tuple2.html" title="BatTuple.Tuple2">Previous</a> <a class="up" href="BatTuple.html" title="BatTuple">Up</a> <a class="post" href="BatTuple.Tuple4.html" title="BatTuple.Tuple4">Next</a> </div> <h1>Module <a href="type_BatTuple.Tuple3.html">BatTuple.Tuple3</a></h1> <pre><span class="keyword">module</span> Tuple3: <code class="code"><span class="keyword">sig</span></code> <a href="BatTuple.Tuple3.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info module top"> Triples.<br> <b>Author(s):</b> Ashish Agarwal<br> </div> <hr width="100%"> <pre><span id="TYPEt"><span class="keyword">type</span> <code class="type">('a, 'b, 'c)</code> t</span> = <code class="type">'a * 'b * 'c</code> </pre> <pre><span id="VALfirst"><span class="keyword">val</span> first</span> : <code class="type">'a * 'b * 'c -> 'a</code></pre> <pre><span id="VALsecond"><span class="keyword">val</span> second</span> : <code class="type">'a * 'b * 'c -> 'b</code></pre> <pre><span id="VALthird"><span class="keyword">val</span> third</span> : <code class="type">'a * 'b * 'c -> 'c</code></pre> <pre><span id="VALget12"><span class="keyword">val</span> get12</span> : <code class="type">'a * 'b * 'c -> 'a * 'b</code></pre> <pre><span id="VALget13"><span class="keyword">val</span> get13</span> : <code class="type">'a * 'b * 'c -> 'a * 'c</code></pre> <pre><span id="VALget23"><span class="keyword">val</span> get23</span> : <code class="type">'a * 'b * 'c -> 'b * 'c</code></pre> <pre><span id="VALmap"><span class="keyword">val</span> map</span> : <code class="type">('a -> 'd) -> ('b -> 'e) -> ('c -> 'f) -> 'a * 'b * 'c -> 'd * 'e * 'f</code></pre> <pre><span id="VALmapn"><span class="keyword">val</span> mapn</span> : <code class="type">('a -> 'b) -> 'a * 'a * 'a -> 'b * 'b * 'b</code></pre><div class="info "> Like <a href="BatTuple.Tuple3.html#VALmap"><code class="code"><span class="constructor">BatTuple</span>.<span class="constructor">Tuple3</span>.map</code></a> but specialized for tuples with elements of the same type. <p> <code class="code">mapn f</code> is equivalent to <code class="code">map f f f</code>.<br> </div> <pre><span id="VALmap1"><span class="keyword">val</span> map1</span> : <code class="type">('a -> 'd) -> 'a * 'b * 'c -> 'd * 'b * 'c</code></pre> <pre><span id="VALmap2"><span class="keyword">val</span> map2</span> : <code class="type">('b -> 'd) -> 'a * 'b * 'c -> 'a * 'd * 'c</code></pre> <pre><span id="VALmap3"><span class="keyword">val</span> map3</span> : <code class="type">('c -> 'd) -> 'a * 'b * 'c -> 'a * 'b * 'd</code></pre> <pre><span id="VALcurry"><span class="keyword">val</span> curry</span> : <code class="type">('a * 'b * 'c -> 'd) -> 'a -> 'b -> 'c -> 'd</code></pre> <pre><span id="VALuncurry"><span class="keyword">val</span> uncurry</span> : <code class="type">('a -> 'b -> 'c -> 'd) -> 'a * 'b * 'c -> 'd</code></pre> <pre><span id="VALenum"><span class="keyword">val</span> enum</span> : <code class="type">'a enumerable -> 'a <a href="BatEnum.html#TYPEt">BatEnum.t</a></code></pre> <pre><span id="VALof_enum"><span class="keyword">val</span> of_enum</span> : <code class="type">'a <a href="BatEnum.html#TYPEt">BatEnum.t</a> -> 'a enumerable</code></pre><div class="info "> <b>Raises</b> <code>Failure</code> if enum does not contain at least 3 elements.<br> </div> <pre><span id="VALprint"><span class="keyword">val</span> print</span> : <code class="type">?first:string -><br> ?sep:string -><br> ?last:string -><br> ('o <a href="BatIO.html#TYPEoutput">BatIO.output</a> -> 'a -> unit) -><br> ('o <a href="BatIO.html#TYPEoutput">BatIO.output</a> -> 'b -> unit) -><br> ('o <a href="BatIO.html#TYPEoutput">BatIO.output</a> -> 'c -> unit) -> 'o <a href="BatIO.html#TYPEoutput">BatIO.output</a> -> 'a * 'b * 'c -> unit</code></pre> <pre><span id="VALprintn"><span class="keyword">val</span> printn</span> : <code class="type">?first:string -><br> ?sep:string -><br> ?last:string -><br> ('o <a href="BatIO.html#TYPEoutput">BatIO.output</a> -> 'a -> unit) -> 'o <a href="BatIO.html#TYPEoutput">BatIO.output</a> -> 'a * 'a * 'a -> unit</code></pre> <pre><span id="VALcompare"><span class="keyword">val</span> compare</span> : <code class="type">?cmp1:('a -> 'a -> int) -><br> ?cmp2:('b -> 'b -> int) -><br> ?cmp3:('c -> 'c -> int) -> 'a * 'b * 'c -> 'a * 'b * 'c -> int</code></pre> <pre><span class="keyword">include</span> <a href="BatEnum.Enumerable.html">BatEnum.Enumerable</a></pre> <pre><span id="VALeq"><span class="keyword">val</span> eq</span> : <code class="type">'a <a href="BatOrd.html#TYPEeq">BatOrd.eq</a> -> 'b <a href="BatOrd.html#TYPEeq">BatOrd.eq</a> -> 'c <a href="BatOrd.html#TYPEeq">BatOrd.eq</a> -> ('a * 'b * 'c) <a href="BatOrd.html#TYPEeq">BatOrd.eq</a></code></pre> <pre><span id="VALord"><span class="keyword">val</span> ord</span> : <code class="type">'a <a href="BatOrd.html#TYPEord">BatOrd.ord</a> -> 'b <a href="BatOrd.html#TYPEord">BatOrd.ord</a> -> 'c <a href="BatOrd.html#TYPEord">BatOrd.ord</a> -> ('a * 'b * 'c) <a href="BatOrd.html#TYPEord">BatOrd.ord</a></code></pre> <pre><span id="VALcomp"><span class="keyword">val</span> comp</span> : <code class="type">'a <a href="BatOrd.html#TYPEcomp">BatOrd.comp</a> -><br> 'b <a href="BatOrd.html#TYPEcomp">BatOrd.comp</a> -> 'c <a href="BatOrd.html#TYPEcomp">BatOrd.comp</a> -> ('a * 'b * 'c) <a href="BatOrd.html#TYPEcomp">BatOrd.comp</a></code></pre> <pre><span class="keyword">module</span> <a href="BatTuple.Tuple3.Eq.html">Eq</a>: <div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T1</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Eq.html">BatOrd.Eq</a></code><code class="code">) <span class="keywordsign">-></span> </code><div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T2</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Eq.html">BatOrd.Eq</a></code><code class="code">) <span class="keywordsign">-></span> </code><div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T3</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Eq.html">BatOrd.Eq</a></code><code class="code">) <span class="keywordsign">-></span> </code><code class="type">Eq</code><code class="type"> with type t = T1.t * T2.t * T3.t</code></div></div></div></pre> <pre><span class="keyword">module</span> <a href="BatTuple.Tuple3.Ord.html">Ord</a>: <div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T1</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Ord.html">BatOrd.Ord</a></code><code class="code">) <span class="keywordsign">-></span> </code><div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T2</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Ord.html">BatOrd.Ord</a></code><code class="code">) <span class="keywordsign">-></span> </code><div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T3</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Ord.html">BatOrd.Ord</a></code><code class="code">) <span class="keywordsign">-></span> </code><code class="type">Ord</code><code class="type"> with type t = T1.t * T2.t * T3.t</code></div></div></div></pre> <pre><span class="keyword">module</span> <a href="BatTuple.Tuple3.Comp.html">Comp</a>: <div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T1</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Comp.html">BatOrd.Comp</a></code><code class="code">) <span class="keywordsign">-></span> </code><div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T2</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Comp.html">BatOrd.Comp</a></code><code class="code">) <span class="keywordsign">-></span> </code><div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">T3</span></code><code class="code"> : </code><code class="type"><a href="BatOrd.Comp.html">BatOrd.Comp</a></code><code class="code">) <span class="keywordsign">-></span> </code><code class="type">Comp</code><code class="type"> with type t = T1.t * T2.t * T3.t</code></div></div></div></pre></body></html>