Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
; Given a data structure like
[[:cv [...nested structure...] [:cvc [...nested structure...] [:vc [...nested structure...] ...]
; and a match rule like (suggestion, i'd be happy with anything that conveys the rule)
[:cvc :vc]
; and a transform like (ditto)
[:cvc "-" :vc]
; I want to end up with a structure
[[:cv [...] [:cvc [...]] "-" [:vc [...]] ...]
; i.e. I am looking to match part of the top-level of a nested structure and then
; transform that structure to insert items (but maybe later slightly more sophisticated
; operations), preserving the surrounding structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment