Liking cljdoc? Tell your friends :D

com.fulcrologic.statecharts.data-model.operations

Convenience helpers for interacting with DataModels

Convenience helpers for interacting with `DataModel`s
raw docstring

assignclj/s

(assign & {:as path-value-pairs})

A operation element that indicates the desire to overwrite the given paths in the data model. E.g.

(assign
 [:x] 2
 :local 42
 [:y :v] "Hello")

See your data model implementation for the interpretation (and support) of the path vectors. ALL data models MUST support single keywords as paths to mean "the current context or scope".

A common interpretation will be [stateid data-key] means the data-key in the data model for at a given state. Data models may choose to search for data in surrounding scopes (states).

A operation element that indicates the desire to overwrite the given paths in the data model. E.g.

```
(assign
 [:x] 2
 :local 42
 [:y :v] "Hello")
```

See your data model implementation for the interpretation (and support) of the path vectors. ALL data models
MUST support single keywords as paths to mean "the current context or scope".

A common interpretation will be `[stateid data-key]` means
the data-key in the data model for at a given state. Data models *may* choose to search for data in surrounding
scopes (states).
sourceraw docstring

deleteclj/s

(delete & paths)

An operation element that indicates the desire to remove certain values from the data model.

(delete :x [:a :b])

See your data model implementation for the interpretation (and support) of the path vectors. ALL data models will support single keywords as "the current context or scope".

An operation element that indicates the desire to remove certain values from the data model.

```
(delete :x [:a :b])
```

See your data model implementation for the interpretation (and support) of the path vectors. ALL data models
will support single keywords as "the current context or scope".
sourceraw docstring

set-map-opsclj/s

(set-map-ops m)

Returns an operation that will set all of the k-v pairs from m into the data model.

Returns an operation that will set all of the k-v pairs from `m` into the
data model.
sourceraw docstring

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

× close