SplayTreeMap

Sorted map based on a splay binary tree structure.

new SplayTreeMap()

/**
 * Creates an instance of SplayTreeMap.
 *
 * @param iterable Iterable of pairs to create the new map with.
 * @param compare Comparison function for key-value pairs sorting by key. Keys are compared as strings by default.
 */
constructor(iterable: Iterable<[K, V]> = [], compare: CompareFunc<K> = compareAsStrings)

Properties and methods of this class are fully compatible with:

SortedMap

Last updated

Was this helpful?