Skip to content

Instantly share code, notes, and snippets.

@lagenorhynque
Created November 29, 2017 06:00
Show Gist options
  • Select an option

  • Save lagenorhynque/a416cbe6012c8262e087d378e7a49456 to your computer and use it in GitHub Desktop.

Select an option

Save lagenorhynque/a416cbe6012c8262e087d378e7a49456 to your computer and use it in GitHub Desktop.
user=> (let [z (+ x y)
#_=> x 1
#_=> y 2]
#_=> z)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context, compiling:(/private/var/folders/pm/hsqkdvv91xn_wpq0fdpfsrz0tk36y9/T/form-init12874968895952326174.clj:1:9)
user=> (letfn [(z [] (+ (x) (y)))
#_=> (x [] 1)
#_=> (y [] 2)]
#_=> (z))
3
> :{
| let z = x + y
| x = 1
| y = 2
| in z
| :}
3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment