File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -637,6 +637,17 @@ each argument to those Scalars. If the original argument also had an
637
637
intermediary Scalar it is bypassed during this process, and is not available
638
638
inside the called function.
639
639
640
+ Sigilled parameters will always impose a context on the collected arguments.
641
+ Sigilless parameters can also be used slurpily, preceded by a + sign, to
642
+ work with whatever initial type they started with:
643
+
644
+ = for code
645
+ sub zipi( +zape ) {
646
+ zape.^name => zape
647
+ };
648
+ say zipi( "Hey "); # OUTPUT: «List => (Hey )»
649
+ say zipi( 1...* ); # OUTPUT: «Seq => (...)»
650
+
640
651
Slurpy parameters have special behaviors when combined with some
641
652
L < traits and modifiers|#Parameter_Traits_and_Modifiers > ,
642
653
as described in
You can’t perform that action at this time.
0 commit comments