Skip to content

Instantly share code, notes, and snippets.

@jebberjeb
Created November 12, 2013 21:55
Show Gist options
  • Save jebberjeb/7439476 to your computer and use it in GitHub Desktop.
Save jebberjeb/7439476 to your computer and use it in GitHub Desktop.
(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