F# – Referential equality for tuples, discriminated unions and records
By default, tuples, discriminated unions and records have what is known as structural equality – i.e. if two instances of these types have the same set of values then they are considered equal, just like value types – despite being reference types: Tuples Discriminated Unions Records To facilitate this form of equality, the F# compiler …
F# – Referential equality for tuples, discriminated unions and records Read More »