prefix
ErrorsCollection

prefix

Synthesised documentation from type/VM type/Distribution/Locally type/Parameter

From type/VM

See Original text in context

Instance method returning a string of the path in which the virtual machine of the VM object is installed.

From type/Distribution/Locally

See Original text in context

A prefix path to be used in conjuncture with the paths found in the metadata.

From type/Parameter

See Original text in context

method prefix(Parameter:D: --> Str:D)

If the parameter is slurpy parameters, returns the marker (e.g., *, **, or +) the parameter was declared with. Otherwise, returns an empty string.

my Signature $flat-slurpy = :($a*@b);
say $flat-slurpy.params[0].prefix# OUTPUT:«␤» 
say $flat-slurpy.params[1].prefix# OUTPUT:«*␤» 
 
my Signature $unflat-slurpy = :($a**@b);
say $unflat-slurpy.params[0].prefix# OUTPUT:«␤» 
say $unflat-slurpy.params[1].prefix# OUTPUT:«**␤» 
 
my Signature $sar-slurpy = :($a+@b);
say $sar-slurpy.params[0].prefix# OUTPUT:«␤» 
say $sar-slurpy.params[1].prefix# OUTPUT:«+␤»