Created
September 12, 2017 11:32
-
-
Save zelark/dd390d2b4084b3c0f61462af2df2ec8f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 xxx [m] | |
(reduce | |
+ | |
(map | |
(fn [i] | |
(reduce + (take-while #(not= 0 %) (map #(get % i) m)))) | |
(range (count (first m)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment