Created
August 15, 2012 21:34
-
-
Save theburningmonk/3363893 to your computer and use it in GitHub Desktop.
F# - converting a C# dictionary to a Map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let toMap dictionary = | |
(dictionary :> seq<_>) | |
|> Seq.map (|KeyValue|) | |
|> Map.ofSeq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This site can be helpful.
https://fsharp.github.io/fsharp-core-docs/
For example, here you can check all Map operations.
https://fsharp.github.io/fsharp-core-docs/reference/fsharp-collections-mapmodule.html