Fork me on GitHub
#specter
<
2018-06-05
>
daveliepmann14:06:22

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?

nathanmarz14:06:10

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

nathanmarz14:06:20

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

daveliepmann14:06:00

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