Created
June 27, 2014 23:57
-
-
Save cj3kim/01279c340d54db9a5caf to your computer and use it in GitHub Desktop.
What is wrong with the for loop?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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