(cond* & clauses)A cond variant that allows :let bindings visible to subsequent clauses.
Example: (cond* (foo?) (handle-foo) :let [a 5] (> a 3) (handle-big a) :let [b (+ a 1)] (bar? b) (handle-bar b) :else (default-handler a b))
A cond variant that allows :let bindings visible to subsequent clauses.
Example:
(cond*
(foo?) (handle-foo)
:let [a 5]
(> a 3) (handle-big a)
:let [b (+ a 1)]
(bar? b) (handle-bar b)
:else (default-handler a b))(unrolled-invoke f args)Invoke f with the elements of the args collection, unrolled by argument
count to avoid the per-call seq allocation of apply.
Arities above max-unrolled-arity fall back to apply. f and args are
each evaluated once. args must be an indexed, counted collection.
Invoke `f` with the elements of the `args` collection, unrolled by argument count to avoid the per-call seq allocation of `apply`. Arities above `max-unrolled-arity` fall back to `apply`. `f` and `args` are each evaluated once. `args` must be an indexed, counted collection.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |