Skip to content

clojure.core/with-open

View this page on ClojureDocs

Type: macro Added: Clojure 1.0 Examples: 4 Runnable: 1
([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.

Examples

by gstamp on . May have evaluation errors.
by octopusgrabbus on
by jcburley on . May have evaluation errors.
by NielsvanKlaveren on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.