F# check if 2 maps are identical -
is there short way check if 2 maps identical?
for example
map [("a", 10)] map [("a", 10)]
-> identical
map [("b", 10)] map [("b", 11)]
-> not identical
the default =
appears work
> map.ofarray [| (1,"a");(2,"b") |] = map.ofarray [| (1,"a");(2,"b") |];; val : bool = true > map.ofarray [| (1,"a");(2,"b") |] = map.ofarray [| (1,"a");(3,"b") |];; val : bool = false
Comments
Post a Comment