Skip to content

Instantly share code, notes, and snippets.

@tgoossens
Created July 17, 2015 11:55
Show Gist options
  • Save tgoossens/9e4f6237d06ecbb0ceed to your computer and use it in GitHub Desktop.
Save tgoossens/9e4f6237d06ecbb0ceed to your computer and use it in GitHub Desktop.
(def vars ['a 'b])
(def equation '(+ 1 a b))
;; I want to create a let environemnt such that
;; (let [ [a b] [1 2]] equation)
;; such that in this expression when evaluated, the variables in the quation have been bound
(bindvars vars [1 2] equation)
=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment