Last active
December 20, 2015 11:19
-
-
Save knjname/6122874 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
| (declare ^:dynamic *asdf*) | |
| (let | |
| [b (binding [*asdf* 10] | |
| (for [i (range 0 3)] | |
| (* *asdf* i)))] | |
| b) | |
| ;;; => java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to java.lang.Number | |
| (let | |
| [b (binding [*asdf* 10] | |
| (doall (for [i (range 0 3)] | |
| (* *asdf* i))))] | |
| b) | |
| ;;; (0 10 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment