Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 445 Bytes

debugging-error-param-let-vector.md

File metadata and controls

23 lines (17 loc) · 445 Bytes

Debugging error parameter declaration let should be a vector

As a newbie to clojure i had this error and couldn't understand way

CompilerException java.lang.IllegalArgumentException: Parameter declaration "let" should be a vector
(defn my-function
  (let ...) 
  ...)

it appeared to be just that a misses a parameter declaration vector.

  [] ;; <- fix
  (let ...)
  ...)

(defn my-function