In common lisp I can place multiple defun in the same closure and have them all set functions.
(let ((number 0)) (defun get-number () number) (defun set-number ( arg ) (setq number arg))) How ever if I use the same syntax in clojure only the last function ends up getting defined.
(let [ number 0 ] (defn get-number [] number) (defn set-number [ arg ] (def number arg))) Is there a way to translate this code into clojure so that you have access to both functions?