-
I have a file which contains mappings which par look like these (typically items in a list two or three mappings deep): - rm: a
- rm: [a, b]
- rm: a
ra: b
- rm: [a, b]
ra: c
- rm: a
ra: [b, c]
- rm: [a, b]
ra: [c, d] That is
Like so: - rm: [a]
- rm: [a, b]
- rm: [a, b]
- rm: [a, b, c]
- rm: [a, b, c]
- rm: [a, b, c, d] How can I do this? Do I need any extra pass(es) to ensure that the values of both keys are lists and to remove I would like to preserve the flow style of the lists, but that is not a necessity. |
Beta Was this translation helpful? Give feedback.
Answered by
bpj
Jul 15, 2025
Replies: 1 comment
-
Never mind I figured it out:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bpj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind I figured it out: