diff --git a/doc/Type/Parameter.pod6 b/doc/Type/Parameter.pod6 index 1ce4df20f..cc8ad0b93 100644 --- a/doc/Type/Parameter.pod6 +++ b/doc/Type/Parameter.pod6 @@ -174,6 +174,17 @@ their sigil in code. $x = 5; } +When used with slurpy list parameters, the C trait will cause the list +of arguments given to be packed into a C instead of an C, which +prevents them from being containerized with C. This is the default +behavior when using C<+> with a sigilless parameter: + + my @types is List = Mu, Any; + say -> *@l { @l }(@types)[0] =:= @types[0]; # OUTPUT: «False␤» + say -> +@l { @l }(@types)[0] =:= @types[0]; # OUTPUT: «False␤» + say -> +l { l }(@types)[0] =:= @types[0]; # OUTPUT: «True␤» + say -> *@l is raw { @l }(@types)[0] =:= @types[0]; # OUTPUT: «True␤» + =head2 method capture Defined as: