The following code is taken from the Perl 6 documentation, and I am trying to learn more about it before more experimentation:
proto token command {*}
token command:sym<create> { <sym> }
token command:sym<retrieve> { <sym> }
token command:sym<update> { <sym> }
token command:sym<delete> { <sym> }
Is the
*
in the first line a whatever-star? Can it be something else, such asproto token command { /give me an apple/ }
Can "sym" be something else, such as
command:eat<apple> { <eat> } ?