Programming Clojure, Third Edition: missing the parameter `x` in the definition of `big?` (page 132)

The definition of big? in the book is (defn big? [ ] (> x 100)). I got below error in clj REPL:

user=> (defn big? [ ] (> x 100))
CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context, compiling:(NO_SOURCE_PATH:90:16)

The issue is fixed after changing it to (defn big? [x] (> x 100))

2 Likes