When expr is not nil, threads it into the first form (via ->), and when that result is not nil, through the next etc
user=> (-> {:a 1} :b inc) ;; NullPointerException clojure.lang.Numbers.ops (Numbers.java:942) user=> (some-> {:a 1} :b inc) ;; nil
;; Often used to "short-circuit out" of a series of steps: (some-> val step1 step2 step3) ;; When nil is returned by any step, the further steps are not executed. Thus ;; the nil case need be handled only once, at the end.
When expr is not nil, threads it into the first form (via ->>), and when that result is not nil, t...
Threads the expr through the forms. Inserts x as the second item in the first form, making a list ...
Takes an expression and a set of test/form pairs. Threads expr (via ->) through each form for whic...
Takes an expression and a set of test/form pairs. Threads expr (via ->>) through each form for whi...
Binds name to expr, evaluates the first form in the lexical context of that binding, then binds na...
Threads the expr through the forms. Inserts x as the last item in the first form, making a list of...
some->