specter

Latest version: 1.1.3
miikka 2019-02-26T09:47:48.008700Z

We tried to use (transiorm [ALL] ...) with Instaparse's AutoFlattenSeq, but the results are in reverse order – probably because if you into into an empty AutoFlattenSeq, it behaves like a linked list and the results are in the reverse order.

miikka 2019-02-26T09:48:49.010Z

We solved it by making a custom navigator with (transform* [this structure next-fn] (map next-fn structure)) – we do not care about preserving the type – but I'm wondering if there's a way to make ALL work with AutoFlattenSeq?

nathanmarz 2019-02-26T12:26:38.010300Z

@miikka yes, you can extend com.rpl.specter.navs/AllTransformProtocol

miikka 2019-02-26T16:03:38.010500Z

Ah, thanks