MemoizerSignature

turbolift.effects.MemoizerSignature
trait MemoizerSignature[K, V] extends Signature

Memoizes a recursive, effectful function.

Use the memo operation in places, where you'd normally want to invoke the function. Provide the actual function as a parameter to handler.

Attributes

Graph
Supertypes
trait Signature
class Object
trait Matchable
class Any
Known subtypes
trait MemoizerEffect[K, V]
trait Memoizer[K, V]

Members list

Type members

Inherited and Abstract types

type ThisEffect

Self-reference to the effect being described by this Signature.

Self-reference to the effect being described by this Signature.

Becomes an alias of this.type, once the signature is inherited from Effect.

Attributes

Inherited from:
Signature

Value members

Abstract methods

def domain: Computation[Set[K], ThisEffect]
def memo(k: K): Computation[V, ThisEffect]
def toMap: Computation[Map[K, V], ThisEffect]