specter

Latest version: 1.1.3
2020-08-18T17:32:46.110300Z

Assuming that we have a vector of hashmaps containing addresses, how to use specter to group them by :country, then by :city ? (I could do it without specter, but I am curious)

2020-08-23T13:34:31.000100Z

I noticed the s/view that could be used instead of s/transformed

isak 2020-08-18T18:05:26.110400Z

(specter/select [(specter/transformed [] (partial group-by :country))
                   (specter/transformed [specter/MAP-VALS] (partial group-by :city))]
                  addresses)

isak 2020-08-18T18:05:45.110600Z

(i'm kind of new, so maybe there is a smarter way)