Created
November 29, 2017 06:00
-
-
Save lagenorhynque/a416cbe6012c8262e087d378e7a49456 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > :{ | |
| | 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