specter

Latest version: 1.1.3
puzzler 2018-12-20T07:15:09.019Z

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

nathanmarz 2018-12-20T12:52:57.019900Z

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

2018-12-20T21:17:12.021200Z

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

idiomancy 2018-12-20T21:43:50.023600Z

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 😮

idiomancy 2018-12-20T21:44:06.023700Z

idiomancy 2018-12-20T21:46:40.024100Z

is that even possible?

idiomancy 2018-12-20T22:24:07.024400Z

I ended up just doing it with regular recursion

idiomancy 2018-12-20T22:24:22.024700Z

it recursively called specter