(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.
(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.
(some-> expr & forms)
When expr is not nil, threads it into the first form (via ->), and when that result is not nil, through the next etc
When expr is not nil, threads it into the first form (via ->), and when that result is not nil, through the next etc
(some->> expr & forms)
When expr is not nil, threads it into the first form (via ->>), and when that result is not nil, through the next etc
When expr is not nil, threads it into the first form (via ->>), and when that result is not nil, through the next etc
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close