Arrays in Clojure are different to Lists, and its probably why when you pass arrays to the score fn, that things don't work 100%.
If you can coerce those arrays to a java list it would probably work. You can do that in js, but if that doesn't work or seem easy, you could have your -score wrapper do it too. To convert the 2d array do: (mapv #(into [] %) the-array) To convert the 1d array do: (into [] the-array) And to convert the return of score from a list back to an array do: (to-array the-list) or (to-array-2d the-list-of-list) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.