-
-
Save mecdemort/fd02f373dd819b5e4536 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
(def tuple '((1 "foo") (2 "bar") (3 "foo"))) | |
(def opts { 0 1, 1 "foo" }) | |
(filter #(every? identity (for [key (keys opts) :let [line %]] (= (opts key) (nth line key)))) tuple) | |
(for [t tuple | |
:when (every? #(= (opts %) (nth t %)) (keys opts))] | |
t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment