OptionalallowOptionalcompareCompares two keys and returns whether the first key is less than the second.
If left unspecified, a default function will be chosen that works on most keys.
OptionalelementsAn iterable that will be consumed to fill the collection.
OptionalgetExctracts the key part of the element.
OptionalisUsed for checking two elements with the same key in the collection.
Set to
falseto prevent an element with the same key for which isEqual returns true to be added to the collection.