DomainFunction

trait DomainFunction[T, K, +V]

Represents a "function" T that knows its (finite) domain, and can also be applied. Typeclass.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(t: T, k: K): V
def domain(t: T): IndexedSeq[K]