The :bind node establishes a dynamic context, storing some data in the defined variables while it executes its child subtree.
It has a single parameter :let which, just like clojure's let is a vector of variable names (a keyword) and variable values (a value or a context funtion).
[:bind {:let [:one 1
:two (bt/bb-getter-in [:some-bb-key])]}
[send-event {:event :hello :arg (bt/var-getter :two)}]]
The :bind node establishes a dynamic context, storing some data in the defined variables while it executes its child subtree. It has a single parameter :let which, just like clojure's let is a vector of variable names (a keyword) and variable values (a value or a context funtion). ```clojure [:bind {:let [:one 1 :two (bt/bb-getter-in [:some-bb-key])]} [send-event {:event :hello :arg (bt/var-getter :two)}]] ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close