We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e80a0 commit 9055ed1Copy full SHA for 9055ed1
doc/Language/operators.rakudoc
@@ -3554,17 +3554,17 @@ operands are false, returns the last one.
3554
This X<feed|Infix operators,feed> operator takes the result from the left and passes it to the
3555
next (right) routine as the last parameter.
3556
3557
- my @array = (1, 2, 3, 4, 5);
+ my @array = 1, 2, 3, 4, 5;
3558
@array ==> sum() ==> say(); # OUTPUT: «15»
3559
3560
This simple example, above, is the equivalent of writing:
3561
3562
3563
say(sum(@array)); # OUTPUT: «15»
3564
3565
Or if using methods:
3566
3567
3568
@array.sum.say; # OUTPUT: «15»
3569
3570
The precedence is very loose so you will need to use parentheses to
0 commit comments