Liking cljdoc? Tell your friends :D

io.simplect.compose.action


actionclj

(action)
(action v)
(action v1 v2)
(action v1 v2 & vs)
source

action-protocljprotocol

completed?clj

(completed? _)

done?clj

(done? _)

halted?clj

(halted? _)

resetclj

(reset _)

step-specsclj

(step-specs _)

stepsclj

(steps _)

success?clj

(success? _)
source

action?clj

source

halt!clj

Modifies the state to indicate stop further processing.

Modifies the state to indicate stop further processing.
sourceraw docstring

halt?clj

Given a state, returns true iff halt! has been used to indicate processing stop and false otherwise.

Given a state, returns `true` iff `halt!` has been used to indicate processing stop and `false`
otherwise.
sourceraw docstring

result-protocljprotocol

completed-stepsclj

(completed-steps _)

failureclj

(failure _)

failure-stepclj

(failure-step _)

failure-stringclj

(failure-string _)

failure-valueclj

(failure-value _)

outputclj

(output _)
source

side-effectclj

(side-effect step-fn step-spec)

Returns a Step Function which acts as the identity function with respect to the map when called, but calling step-fn before the map is returned. step-fn must be a thunk (a zero-argument function).

Returns a Step Function which acts as the identity function with respect to the map when called,
but calling `step-fn` before the map is returned.  `step-fn` must be a thunk (a zero-argument
function).
sourceraw docstring

stepclj

(step vstep)
(step step-fn step-spec)

Returns a Step, which is an atomic element in an Action and must be a Step Function: A function which accepts and returns a map which represents the state of the Action. Actions consistent of a sequence of zero or more Steps.

step-fn must be one of:

  • A Step Function: A function accepting and returning a map
  • A symbol referencing Step Function
  • A vector whose first element is a symbol which resolves to a function which will be called with the remaining members of the vector
  • nil - indicating a no-operation Step
  • [] - the empty vector, indicating a no-operation Step

step-spec is the data that is optionally associated with Steps, it can be any value.

Returns a Step, which is an atomic element in an Action and must be a Step Function: A function
which accepts and returns a map which represents the state of the Action.  Actions consistent of a
sequence of zero or more Steps.

`step-fn` must be one of:

- A Step Function: A function accepting and returning a map
- A symbol referencing Step Function
- A vector whose first element is a symbol which resolves to a function which will be called with
  the remaining members of the vector
- `nil` - indicating a no-operation Step
- `[]` - the empty vector, indicating a no-operation Step

`step-spec` is the data that is optionally associated with Steps, it can be any value.
sourceraw docstring

step-protocljprotocol

step-fnclj

(step-fn _)

step-specclj

(step-spec _)
source

step?clj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close