Skip to content

Instantly share code, notes, and snippets.

@cj3kim
Created June 27, 2014 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cj3kim/01279c340d54db9a5caf to your computer and use it in GitHub Desktop.
Save cj3kim/01279c340d54db9a5caf to your computer and use it in GitHub Desktop.
What is wrong with the for loop?
clojure.lang.Compiler$CompilerException: clojure.lang.ArityException: Wrong number of args (3) passed to: core/for, compiling:(/Users/chriskim/Desktop/promethix/src/promethix/orthanormal/solver.clj:7:5)
(defn solve [& rows]
(let [dimension-count (count rows)
dimension-index (range dimension-count)]
(for [[i e] (dimension-index matrix)]
(println i)
(println e))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment