Package net.akehurst.language.collections

Types

LazyArray
Link copied to clipboard
common
class LazyArray<T>(size: Int, accessor: (Int) -> T)
LazyMap
Link copied to clipboard
common
class LazyMap<K, V>(accessor: (K) -> V) : Map<K, V>
LazyMapNonNull
Link copied to clipboard
common
class LazyMapNonNull<K, V>(accessor: (K) -> V) : Map<K, V>
MapIntTo
Link copied to clipboard
common
class MapIntTo<V>
MutableMap2IntKeys
Link copied to clipboard
common
class MutableMap2IntKeys<V>(key1Max: Int, key2Max: Int)
If there are multiple values that contribute to a key, it should be faster to use the keys separately, rather than create a separate 'key' object
MutableQueue
Link copied to clipboard
common
class MutableQueue<T>
MutableStack
Link copied to clipboard
common
class MutableStack<T>
Stack
Link copied to clipboard
common
class Stack<T>(items: List<T>)

Functions

including
Link copied to clipboard
common
fun IntArray.including(value: Int): IntArray
lazyArray
Link copied to clipboard
common
fun <T> lazyArray(size: Int, accessor: (Int) -> T): LazyArray<T>
lazyMap
Link copied to clipboard
common
fun <K, V> lazyMap(accessor: (K) -> V): LazyMap<K, V>
lazyMapNonNull
Link copied to clipboard
common
fun <K, V> lazyMapNonNull(accessor: (K) -> V): LazyMapNonNull<K, V>
transitiveClosure
Link copied to clipboard
common
fun <T> List<T>.transitiveClosure(function: (T) -> List<T>): List<T>
fun <T> Set<T>.transitiveClosure(accumulate: Boolean = true, function: (T) -> Set<T>): Set<T>
transitiveClosure_old
Link copied to clipboard
common
fun <T> Set<T>.transitiveClosure_old(function: (T) -> Set<T>): Set<T>