I have a double nested map like {:a {:b 1}}
and I need get all tuples key1, key2, value where value fits a predicate
Is there some way I can do this?
(def m {:a {:b 1 :c 2} :d {:e 3 :f 4}})
(def VALS-WITH-KEY (path ALL (collect-one FIRST) LAST))
(select [VALS-WITH-KEY VALS-WITH-KEY even?] m)
hm I really need to experiment with subpaths more
thanks
using path operator is good for performance?
yes