Liking cljdoc? Tell your friends :D
Clojure only.

com.cognitect.vase.try


try->cljmacro

(try-> x & forms)

Thread the first expression through the remaining expressions.

A form like (:? classname var ,,,) catches exceptions from the preceding code. It continues threading with the value of the body expressions as the replacement value.

A form like (:! classname var ,,,) catches exceptions from the preceding code, but does not continue threading. It aborts and the entire expression returns ::exit

Thread the first expression through the remaining expressions.

A form like (:? classname var ,,,) catches exceptions from
the preceding code. It continues threading with the value of the
body expressions as the replacement value.

A form like (:! classname var ,,,) catches exceptions from the
preceding code, but does _not_ continue threading. It aborts and the
entire expression returns ::exit
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close