LazyMemoizerSignature
turbolift.effects.LazyMemoizerSignature
trait LazyMemoizerSignature[K, V] extends Signature
Memoizes a recursive, effectful, lazy function.
Like the Memoizer
effect, but this version can be used to build or transform cyclic data structures.
The price to pay is that that memo
returns a thunk. The constructor of the cyclic data structure should store obtained thunks, rather than attempt to call them.
Calling obtained thunks BEFORE this effect is handled, may raise TieTheKnot
exception and should be considered a defect.
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
Members list
In this article