Archive for October, 2018

Clojure: Inverting a nested hash map

Friday, October 26th, 2018

We all know and love (assoc-in a kv v)

How can we take an existing map and invert it to the assoc-in commands that would create it?

I’ve been struggling with this problem for far too long. I finally found a nice solution by Jay Fields