csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
3.6 KiB
66 lines
3.6 KiB
<HTML><HEAD><TITLE>Microsoft.FSharp.Compatibility.Map</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
|
|
<br><dl>
|
|
<dt></dt><dd>
|
|
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Compatibility.html'>Microsoft.FSharp.Compatibility</a>.Map </h1><br>
|
|
</dd>
|
|
<dt></dt><dd>
|
|
<table>
|
|
<tr valign='top'><td><summary>
|
|
Extension functionality for maps using structural comparison
|
|
</summary>
|
|
<dt><h3>Type Definitions</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=30%>Type</th><th>Description</th></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.Map.type_Provider-3.html'>Provider</a></td><td><summary>
|
|
A collection of operations for creating and using maps based on a particular comparison function.
|
|
The 'Tag type parameter is used to track information about the comparison function.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.Map.type_Provider-2.html'>Provider</a></td><td> Note: an abbreviation for <tt><a href='Microsoft.FSharp.Compatibility.Map.type_Provider-3.html'>Provider</a><'Key,'T,IComparer<'Key>></tt></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
<dt><h3>Values</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=60%>Value</th><th>Description</th></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val fold :
|
|
('Key -> 'Value -> 'State -> 'State) ->
|
|
<a href='../FSharp.Core/Microsoft.FSharp.Collections.type_Map-2.html'>Map</a><'Key,'Value> -> 'State -> 'State</pre></td><td><summary>
|
|
Fold over the bindings in the map
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val Make : ('Key -> 'Key -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a>) -> <a href='Microsoft.FSharp.Compatibility.Map.type_Provider-2.html'>Provider</a><'Key,'T></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val MakeTagged :
|
|
'Tag -> <a href='Microsoft.FSharp.Compatibility.Map.type_Provider-3.html'>Provider</a><'Key,'T,'Tag> (requires 'Tag :> IComparer<'Key>)</pre></td><td><summary>
|
|
A functor to build a collection of operations for creating and using
|
|
maps based on the given comparison function. This returns a record that
|
|
contains the functions you use to create and manipulate maps of
|
|
this kind. The returned value is much like an ML module.
|
|
|
|
Language restrictions related to polymorphism may mean you
|
|
have to create a new instantiation of for each toplevel
|
|
key/value type pair.
|
|
|
|
To use this function you need to define a new named class that implements IComparer and
|
|
pass an instance of that class as the first argument. For example:
|
|
type MyComparer =
|
|
new() = { }
|
|
interface IComparer<string> with
|
|
member self.Compare(x,y) = ...
|
|
|
|
let MyStringMapProvider : Map.Provider < string,int > = Map.MakeTagged(new MyComparer())
|
|
</summary></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
</td></tr>
|
|
<tr valign='top'><td>
|
|
<dt><h3>See Also</h3></dt><dd>
|
|
<a href="Microsoft.FSharp.Compatibility.html">Microsoft.FSharp.Compatibility</a> </dd>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
|
|
</BODY></HTML>
|
|
|