Hacker News new | ask | show | jobs
by dimovich 2109 days ago
Specter is really handy for manipulating data structures, and have been happily using it.

I wonder, is it possible to select some subset of a map? Say you have these paths:

(def paths [[:some :path] [:another :deeper :path] [:yet :another :one] [:yet :another :one :deeper]])

And select from a map these paths. You could do it with get-in, but maybe Specter can do it faster? I couldn't find a way to do it with Specter...