ClojureDocs

导航

命名空间

with-bindings

clojure.core

自 1.1 起可用 (源代码)
  • (with-bindings binding-map & body)
Takes a map of Var/value pairs. Installs for the given Vars the associated
values as thread-local bindings. Then executes body. Pops the installed
bindings after body was evaluated. Returns the value of body.