Slot

class Slot<V : DotStore<V>>

A key's current store, and the one way to mint a dot while changing it.

Valid only while the mutator that received it runs: mint throws once apply has returned.

Properties

Link copied to clipboard
val store: V

The store currently under the key, or the bottom handed to apply when it is absent.

Functions

Link copied to clipboard
fun mint(): Dot

The next dot from the shared context, recorded so apply can check it is written.

Link copied to clipboard
fun <W : DotStore<W>> narrow(store: W): CausalMap.Slot<W>

A slot over a store nested inside this one, minting from the same context.