ClojureDocs

导航

命名空间

let

clojure.core

自 1.0 起可用 (源代码)
  • (let [bindings*] exprs*)
binding => binding-form init-expr
binding-form => name, or destructuring-form
destructuring-form => map-destructure-form, or seq-destructure-form
 Evaluates the exprs in a lexical context in which the symbols in
the binding-forms are bound to their respective init-exprs or parts
therein.
 See https://clojure.org/reference/special_forms#binding-forms for
more information about destructuring.