Created
November 12, 2013 21:55
-
-
Save jebberjeb/7439476 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
(ns test-app.core) | |
(def v1 [4 5 6]) | |
(def v2 [1 2 3]) | |
(def m {0 7 1 8}) | |
(def get* (fn [k a] (get a k))) | |
[(min-key first v1 v2) | |
(max-key (partial get* 0) v1 v2 m)] | |
;;=> [[1 2 3] {0 7, 1 8}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment