specter

Latest version: 1.1.3
montanonic 2018-06-20T22:22:34.000277Z

Any one-liner that can "explode" values while keeping things flat? Roughly speaking, like flatmap. Example: turning {:a 1 :b 2} into {:a 1 :b 2 "a" 1 "b" 2 'a 1 'b 2}, the keys get mapped to a set of new keys, but retain their original values, and the whole is returned as a single flat map.

montanonic 2018-06-20T22:49:42.000032Z

https://github.com/nathanmarz/specter/issues/82#issuecomment-215098107 is close, but not structure-preserving, and passes the arguments inside of an additional vector (which is fine but ideally should be left an implementation detail).