add-reader-to-sandbox

net.licenser.sandbox

  • (add-reader-to-sandbox sandbox reader-fn)
This function can be used to tell a sandbox how to conuse the code that it
passed to it.

Usage: (add-reader-to-sandbox sandbox read-string)

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 net/licenser/sandbox.clj:79 top

(defn add-reader-to-sandbox
  "This function can be used to tell a sandbox how to conuse the code that it
  passed to it.

  Usage: (add-reader-to-sandbox sandbox read-string)"
  [sandbox reader-fn]
  (fn [code & params]
    (binding [*read-eval* false]
      (apply sandbox (reader-fn code) params))))
Vars in net.licenser.sandbox/add-reader-to-sandbox: apply binding defn fn
Used in 0 other vars

Comments top

No comments for add-reader-to-sandbox. Log in to add a comment.