Fork me on GitHub
#specter
<
2018-12-20
>
puzzler07:12:09

Is there a protocol that "goes the other way" for datafy? I agree that's a good idea, if so.

nathanmarz12:12:57

@puzzler doesn't look like it, so it would have to be independently defined

aaelony21:12:12

If anyone is looking for a nasty data structure to play with Specter, I think I’ve found one here: “https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json

idiomancy21:12:50

Alright so I have a hell of a difficult one and specter would be perfect for this... but it is a bear. so AWS's nosql, DynamoDB, stores records in this wonky schema'd format. Heres an example. The key indicates how the record should be transformed. Essentially the leaf values are S and N, for strings and numbers respectively. I want to traverse recursively and replace the {:type-key val} with just the val. which involves crazy collection between recursed layers 😮

idiomancy21:12:40

is that even possible?

idiomancy22:12:07

I ended up just doing it with regular recursion

idiomancy22:12:22

it recursively called specter