OptionalequivalenceDecides membership by its equals and hash. valueEquivalence honours the
equalsSymbol/hashCodeSymbol protocol; sameValueZeroEquivalence is the default behaviour.
OptionalkeyDerives the primitive key a member is found by; two values are the same member when their keys are SameValueZero-equal. Called once per value per operation, never again for a stored member.
Options for a
LinkedHashSet. At most one ofkeyandequivalencemay be given; with neither, members compare with SameValueZero, as in nativeSet.Example