예제 #1
0
 /// <summary>
 /// Convert a LanguageExt Map into an F# Map
 /// </summary>
 public static FSharpMap <K, V> fs <K, V>(IImmutableDictionary <K, V> map) =>
 MapModule.OfSeq(List.map(map, kv => Tuple.Create(kv.Key, kv.Value)));
예제 #2
0
 /// <summary>
 /// Convert a LanguageExt Map (Map K V) into an F# Map
 /// </summary>
 public static FSharpMap <K, V> ToFSharp <K, V>(this Map <K, V> map) =>
 MapModule.OfSeq(map.AsEnumerable().Map(item => Tuple(item.Key, item.Value)));