Annotated image of how \expandafter
is processed.
\expandafter
and "jumps over"
\docsvlist
to the second \expandafter
.
\expandafter |
\docsvlist |
\expandafter |
{ |
\mylist |
} |
↘ | ↗ | ||||
→ |
\expandafter
and jumps over the open curly brace
{
to \mylist
.
\expandafter |
\docsvlist |
\expandafter |
{ |
\mylist |
} |
↘ | ↗ | ||||
→ |
\mylist
with its replacement text (one-level expansion).
\mylist |
↕ |
Parrot,Canary,Zebra,Arara,Duck |
\docsvlist
after the first \expandafter
.
\docsvlist{Parrot,Canary,Zebra,Arara,Duck}