Optional
allowOptional
compareCompares 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.
Optional
elementsAn iterable that will be consumed to fill the collection.
Optional
getExctracts the key part of the element.
Optional
isUsed for checking two elements with the same key in the collection.
Set to
false
to prevent an element with the same key for which isEqual returns true to be added to the collection.