forked from ocaml/opam
/
OpamMisc.Base.Map.html
57 lines (57 loc) · 3.46 KB
/
OpamMisc.Base.Map.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!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="OpamMisc.Base.Set.html">
<link rel="Up" href="OpamMisc.Base.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="OpamAlias" rel="Chapter" href="OpamAlias.html">
<link title="OpamClient" rel="Chapter" href="OpamClient.html">
<link title="OpamCompiler" rel="Chapter" href="OpamCompiler.html">
<link title="OpamFile" rel="Chapter" href="OpamFile.html">
<link title="OpamFilename" rel="Chapter" href="OpamFilename.html">
<link title="OpamFormat" rel="Chapter" href="OpamFormat.html">
<link title="OpamFormula" rel="Chapter" href="OpamFormula.html">
<link title="OpamMisc" rel="Chapter" href="OpamMisc.html">
<link title="OpamPackage" rel="Chapter" href="OpamPackage.html">
<link title="OpamParallel" rel="Chapter" href="OpamParallel.html">
<link title="OpamPath" rel="Chapter" href="OpamPath.html">
<link title="OpamProcess" rel="Chapter" href="OpamProcess.html">
<link title="OpamRepository" rel="Chapter" href="OpamRepository.html">
<link title="OpamSolver" rel="Chapter" href="OpamSolver.html">
<link title="OpamSystem" rel="Chapter" href="OpamSystem.html">
<link title="OpamTypes" rel="Chapter" href="OpamTypes.html">
<link title="OpamVariable" rel="Chapter" href="OpamVariable.html">
<link title="OpamVersion" rel="Chapter" href="OpamVersion.html"><title>OpamMisc.Base.Map</title>
</head>
<body>
<div class="navbar"> <a href="OpamMisc.Base.html">Up</a>
<a href="OpamMisc.Base.Set.html">Next</a>
</div>
<center><h1>Module <a href="type_OpamMisc.Base.Map.html">OpamMisc.Base.Map</a></h1></center>
<br>
<pre><span class="keyword">module</span> Map: <code class="type"><a href="OpamMisc.MAP.html">OpamMisc.MAP</a></code><code class="type"> with type key = string</code></pre><hr width="100%">
<pre><span class="keyword">include</span> Map.S</pre>
<pre><span id="VALto_string"><span class="keyword">val</span> to_string</span> : <code class="type">('a -> string) -> 'a t -> string</code></pre><div class="info">
Pretty-printing<br>
</div>
<pre><span id="VALvalues"><span class="keyword">val</span> values</span> : <code class="type">'a t -> 'a list</code></pre><div class="info">
Split with <code class="code">bindings</code> and return the <code class="code">snd</code> component.<br>
</div>
<br>
Same as <code class="code">merge</code> but only keys that appear in both maps
are given in the merging function<br>
<pre><span id="VALmerge_max"><span class="keyword">val</span> merge_max</span> : <code class="type">(key -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t</code></pre><div class="info">
WARNING : Besides <code class="code">key</code>, the function could receive
some <code class="code">v1</code> and some <code class="code">v2</code> such that <code class="code">v1 = v2</code> holds.<br>
</div>
<pre><span id="VALof_list"><span class="keyword">val</span> of_list</span> : <code class="type">(key * 'a) list -> 'a t</code></pre><div class="info">
Convert an assoc list to a map<br>
</div>
</body></html>