specter

Latest version: 1.1.3
daveliepmann 2018-06-05T14:15:22.000829Z

Hi folks. I have a map and want to transform it to a nested map by applying a function to the key. A contrived example would be {"ab" 5, "az" 10} would become {"a" {"b" 5, "z 10}. I don't see a way to do this with transform—am I missing something?

nathanmarz 2018-06-05T14:21:10.000281Z

@daveliepmann that's a restructure of the entire data structure, so specter won't be better than just doing it without

nathanmarz 2018-06-05T14:22:20.000769Z

specter lets you target a precise part of a data structure and only change that part, which isn't the case here

daveliepmann 2018-06-05T14:23:00.000311Z

I had that suspicion, but it helps to hear it from the source. Thanks! 🙂