Control forms.
Control forms.
(->>?-> expr & clauses)
Like ?->, but the conditions are threaded with ->> and the results are threaded with ->. (->>?-> 4 (> 2) inc (> 6) dec)
Like ?->, but the conditions are threaded with ->> and the results are threaded with ->. (->>?-> 4 (> 2) inc (> 6) dec)
(->?->> expr & clauses)
Like cond->, but threads the argument through the conditions as well. (->?->> 4 (> 2) inc (> 6) dec)
Like cond->, but threads the argument through the conditions as well. (->?->> 4 (> 2) inc (> 6) dec)
(?-> expr & clauses)
Like cond->, but threads the argument through the conditions as well. (?-> 4 even? inc odd? inc neg? inc)
Like cond->, but threads the argument through the conditions as well. (?-> 4 even? inc odd? inc neg? inc)
(?->> expr & clauses)
Like cond->>, but threads the argument through the conditions as well. (?->> 4 even? (assoc {} :four))
Like cond->>, but threads the argument through the conditions as well. (?->> 4 even? (assoc {} :four))
(guarded-let guard-fn bindings & body)
Binds symbols as in let. If an exception is thrown within the block of bindings, all symbols already successfully bound will have guard-fn called on them, in reverse order, for side-effects.
Binds symbols as in let. If an exception is thrown within the block of bindings, all symbols already successfully bound will have guard-fn called on them, in reverse order, for side-effects.
(locking-when lock? x & body)
Like locking, but only locks when lock? evaluates as true.
Like locking, but only locks when lock? evaluates as true.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close