Types

Link copied to clipboard
class CacheMap<K, V>(val backingMap: MutableMap<K, V> = HashMap()) : Map<K, V>

Cache which can be used to cache and compute entities

Functions

Link copied to clipboard
fun <T> Collection<T>.iterateGraph(action: (T) -> Collection<T>)

Helper function to iterate over a graph The Collection on which it is called is treated as the set of starting nodes action is called for each node in the graph exactly once, and returns a set of nodes to iterate over. This returned set of nodes may contain duplicates, or nodes which have already been iterated over.