title: Is it possible to pass the result of a function as input into two functions in Clojure?
body: <p>I have the function <code>generate-code</code> that runs in a <code>while</code> loop in Clojure:</p>
  
  <pre><code>; ...
  (with-local-vars [code nil]
      (while true
          (var-set code (generate-code @code))
          (write-to-file @code)
          (execute-code @code)))
  </code></pre>
  
  <p>Obviously this isn't very Clojure-esque - is there a better way to do this without introducing local variables?</p>