Created
August 14, 2017 05:41
-
-
Save Sophia-Gold/9dd5e985f64b23285fc1badee5758f39 to your computer and use it in GitHub Desktop.
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 max-index [v] | |
(->> v | |
(map-indexed vector) | |
(apply max-key second) | |
(first))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment