See Original text in context
method usage-name(Parameter: --> Str)
Returns the parameter name without any sigils and twigils.
If the parameter is anonymous, an empty string will be returned.
Note: Before Rakudo version 2020.08 the return value for an anonymous parameter was Nil
.
my Signature = :(Str , Str , Bool);say .params[0].usage-name; # OUTPUT: «x»say .params[1].usage-name; # OUTPUT: «l»say .params[2].usage-name; # OUTPUT: «»