ClojureDocs

Nav

Namespaces

with-open

clojure.core

Available since 1.0 (source)
  • (with-open bindings & body)
bindings => [name init ...]
 Evaluates body in a try expression with names bound to the values
of the inits, and a finally clause that calls (.close name) on each
name in reverse order.