Advertisement
timotheosh

Let Bindings Clojure

Dec 16th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def bar nil)
  2.  
  3. (defn test-bar []
  4.    (if (not bar)
  5.      (println "You need to define bar!")
  6.      (println "bar defined.")))
  7.  
  8. (let [bar 2]
  9.   (test-bar))
  10.  
  11. => "You need to define bar!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement