I want to be able to run a function with a variable number of parameters in Perl6, but after reading through https://docs.perl6.org/language/functions#Arguments I don\'t see
If you just want to be able to take 1 or 2 values then the easiest way is to mark the second value as optional :
sub some-test( $v1, $v2? ) { ... }
Or you can define a default value :
sub some-test( $v1, $v2="default" ) { ... }
Or if you want any number of values (1 or more) you can use a slurpy with a where clause :
sub some-test( *@v where *.elems > 0 ) { ... }