Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/Language/operators.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -3554,17 +3554,17 @@ operands are false, returns the last one.
This X<feed|Infix operators,feed> operator takes the result from the left and passes it to the
next (right) routine as the last parameter.

my @array = (1, 2, 3, 4, 5);
my @array = 1, 2, 3, 4, 5;
@array ==> sum() ==> say(); # OUTPUT: «15␤»

This simple example, above, is the equivalent of writing:

my @array = (1, 2, 3, 4, 5);
my @array = 1, 2, 3, 4, 5;
say(sum(@array)); # OUTPUT: «15␤»

Or if using methods:

my @array = (1, 2, 3, 4, 5);
my @array = 1, 2, 3, 4, 5;
@array.sum.say; # OUTPUT: «15␤»

The precedence is very loose so you will need to use parentheses to
Expand Down