Companion

object Companion

Functions

Link copied to clipboard
fun <K, V> fromMap(map: Map<Iterable<K>, V>): PrefixTree<K, V>

Create a PrefixTree from the given map.

Link copied to clipboard

Create a PrefixTree from the given map.

Link copied to clipboard
inline operator fun <V> PrefixTree<Int, V>.get(key: String): V?

Convenience getter for using string-keyed prefix trees.

Link copied to clipboard
inline fun <V> PrefixTree<Int, V>.getOrPut(key: String, noinline producer: () -> V): V

Convenience getter/setter for using string-keyed prefix trees.

Link copied to clipboard
inline fun <V> PrefixTree<Int, V>.payloads(key: String): List<V>

Convenience accumulator for using string-keyed prefix trees.

Link copied to clipboard
inline operator fun <V> PrefixTree<Int, V>.set(key: String, value: V): V?

Convenience setter for using string-keyed prefix trees.