Optional
compareOptional
elementsAn iterable that will be consumed to fill the collection.
Optional
getExtracts the key part of the element.
Optional
isUsed for checking two elements with the same key in the collection.
Optional
onWhat to do when an identical element (according to [[isEqual]]) is added.
Optional
onWhat to do when an element with the same key (according to [[compareKeys]]) is added.
Compares 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.