F # set and equality mapping

How does it work set1 = set2for immutable sets and F # maps? Will they perform the correct match / mapping?

The documentation says:

Immutable sets based on binary trees, where comparison is the F # structural comparison function, potentially using IComparable interface implementations by key values.

They are based on binary trees, so maybe the exact form was not inserted depending on the elements of the order? Therefore, naively, using the function of comparing structures F # would not work ...

I can not find anything in the documentation. Did I just miss this?

+4
source share
1 answer

, , .

, Equals GetEnumerator , , , , doc Set.toSeq : " ".

"F # " :

quote from "F # for Scientists"

+9

All Articles