GitHub

API reference for state.

class state[A]

A writable atom holding initial until it is set. state(()) infers the type from the value; state[tuple[str, ...]](()) states it, as Effect's Atom.make<A>(value).