-
Hi again. Now that Parser footer() =>
ref0(footerLine).separatedBy(newLine, includeSeparators: false).plus(); Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
renggli
Nov 20, 2023
Replies: 2 comments
-
The equivalent using Parser footer() => ref0(footerLine)
.plusSeparated(newLine)
.map((list) => list.elements)
.plus(); The result of |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
renggli
-
Thank you very much. Much appreciated! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The equivalent using
plusSeparated()
would be:The result of
plusSeparated
is a SeparatedList that contains the statically typed elements and separators (and some helpers). This is different toseparatedBy()
that had to return a single dynamically typed list.