1.2.0 permalink Arrow_down_16x16

with-env-locals

swank.core

  • (with-env-locals form)
Evals a form with given locals. The locals should be a map of symbols to
values.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/core.clj:82 top

(defn with-env-locals
  "Evals a form with given locals. The locals should be a map of symbols to
values."
  [form]
  (let [m (local-non-functions *current-env*)]
    (if (first m)
      `(let ~(vec (mapcat #(list % (m %)) (keys m)))
         ~form)
      form)))
Vars in swank.core/with-env-locals: defn first keys let list mapcat vec concat seq
Used in 0 other vars

Comments top

No comments for with-env-locals. Log in to add a comment.