Liking cljdoc? Tell your friends :D

taia.state-machines.state

Used by the steps: where the state lives in the ctx, state paths and nodes, choosing among options, running an action.

Used by the steps: where the state lives in the ctx, state paths and nodes,
choosing among options, running an action.
raw docstring

first-matching-optionclj

(first-matching-option options ctx x)

The first option whose :cond holds for ctx and x (or that has no :cond).

The first option whose :cond holds for `ctx` and `x` (or that has no :cond).
sourceraw docstring

has-multiple-options?clj

(has-multiple-options? v)
source

new-stateclj

(new-state old-state-path target)

Where a target leads from old-state-path: a vector is absolute, a keyword replaces the last segment. A single-segment path collapses to its keyword.

Where a target leads from `old-state-path`: a vector is absolute, a keyword
replaces the last segment. A single-segment path collapses to its keyword.
sourceraw docstring

run-actionclj

(run-action opts action ctx [event params])

Runs action on ctx with params (through the :action-trace-fn in opts when there is one); no action → ctx.

Runs `action` on `ctx` with `params` (through the :action-trace-fn in `opts`
when there is one); no action → `ctx`.
sourceraw docstring

state-key-from-optsclj

(state-key-from-opts opts)
source

state-nodeclj

(state-node machine path)

The machine's map for the state at path.

The machine's map for the state at `path`.
sourceraw docstring

state-pathclj

(state-path ctx opts)

The current state as a path vector: :a → [:a], [:a :b] stays.

The current state as a path vector: :a → [:a], [:a :b] stays.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close