Fork me on GitHub
#specter
<
2019-02-26
>
miikka09:02:48

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.

miikka09:02:49

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?

nathanmarz12:02:38

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

miikka16:02:38

Ah, thanks