constructor Method

Construct a new Dictionary<K, V>.

Dictionary(compareKeys: OrderedComparator<K>, cloneKey: CloneFunction<K> = shallowClone, cloneValue: CloneFunction<V> = shallowClone): Dictionary

Parameter Type Description
compareKeys OrderedComparator<K> The function used to compare keys within the dictionary.
cloneKey CloneFunction<K> The function invoked to clone a key for insertion into the dictionary. The default implementation simply returns its input.
cloneValue CloneFunction<V> The function invoked to clone a value for insertion into the dictionary. The default implementation simply returns its input.

Defined in

Last Updated: 08 January, 2020