Skip to content

Instantly share code, notes, and snippets.

@frankiesardo
Created August 10, 2016 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankiesardo/50ef713b98175a369c033a77a6d868eb to your computer and use it in GitHub Desktop.
Save frankiesardo/50ef713b98175a369c033a77a6d868eb to your computer and use it in GitHub Desktop.
(defn find-in [m ks]
(loop [path []
ks (seq ks)
m m]
(if ks
(when-let [[k m] (find m (first ks))]
(recur (conj path k) (next ks) m))
[path m])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment