derived

fun <T : Any> derived(functor: String, arity: Int, name: String, compute: (List<Clause>) -> T): T

A value derived from the clauses of the predicate functor/arity (newest first), named name: computed once, until the predicate changes (the branches sharing the predicate share it)