Documentation for method suffix
assembled from the following pages:
Class: Parameter §
From Parameter
(Parameter) method suffix §
Defined as:
method suffix(Parameter: --> Str)
Returns the ?
or !
marker a parameter was declared with, if any. Otherwise, returns the empty string.
my Signature = :(, ?);say .params[0].suffix; # OUTPUT: «» say .params[1].suffix; # OUTPUT: «?» my Signature = :(:!, :);say .params[0].suffix; # OUTPUT: «!» say .params[1].suffix; # OUTPUT: «»