(atom x)
Creates and returns an Atom with an initial value of x.
Creates and returns an Atom with an initial value of x.
(derived selector source)
(derived selector source equals?)
Create a derived atom from an other atom with the provided lense.
The returned atom is lazy, so no code is executed until user requires it.
By default the derived atom does not trigger updates if the data
does not affects to it (determined by selector), but this behavior
can be deactivated passing :equals?
to false
on the third
options parameter. You also may pass =
as equals?
parameter if
you want value comparison instead of reference comparison with
identical?
.
Create a derived atom from an other atom with the provided lense. The returned atom is lazy, so no code is executed until user requires it. By default the derived atom does not trigger updates if the data does not affects to it (determined by selector), but this behavior can be deactivated passing `:equals?` to `false` on the third options parameter. You also may pass `=` as `equals?` parameter if you want value comparison instead of reference comparison with `identical?`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close