Skip to content

Commit 758b7ac

Browse files
authored
Add note on what "variadic" is and pop into index
1 parent c2ecacb commit 758b7ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/Type/Signature.pod6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ be omitted.
266266
267267
=head2 X<Slurpy (A.K.A. Variadic) Parameters|parameter,*@;parameter,*%,slurpy argument (Signature)>
268268
269-
An array or hash parameter can be marked as I<slurpy> by leading asterisk(s),
270-
which means it can bind to an arbitrary amount of arguments (zero or more).
269+
A function is X<variadic> if it can take a varying number of arguments; that is, its arity is not
270+
fixed. Therefore, optional, named, and slurpy parameters are variadic. An array or hash parameter
271+
can be marked as I<slurpy> by leading asterisk(s), which means it can bind to an arbitrary amount
272+
of arguments (zero or more).
271273
272274
These are called "slurpy" because they slurp up any remaining arguments
273275
to a function, like someone slurping up noodles.

0 commit comments

Comments
 (0)