Skip to content

Instantly share code, notes, and snippets.

@cj3kim cj3kim/Error

Created Jun 27, 2014
What would you like to do?
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
You can’t perform that action at this time.