Backports from future versions of Clojure
Backports from future versions of Clojure
(as->* expr name & forms)
Binds name to expr, evaluates the first form in the lexical context of that binding, then binds name to that result, repeating for each successive form, returning the result of the last form.
Binds name to expr, evaluates the first form in the lexical context of that binding, then binds name to that result, repeating for each successive form, returning the result of the last form.
(cond->* expr & clauses)
Takes an expression and a set of test/form pairs. Threads expr (via ->) through each form for which the corresponding test expression is true. Note that, unlike cond branching, cond->* threading does not short circuit after the first true test expression.
Takes an expression and a set of test/form pairs. Threads expr (via ->) through each form for which the corresponding test expression is true. Note that, unlike cond branching, cond->* threading does not short circuit after the first true test expression.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close