Skip to content

Commit c06a01e

Browse files
committed
Pipeline is something I hallucinated -- should be feed
1 parent 4db9cef commit c06a01e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Language/operators.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,10 +1897,10 @@ Short-circuits.
18971897
18981898
=head2 infix C«==>»
18991899
1900-
This X<pipeline> operator takes the result from the left and passes it as the
1900+
This X<feed> operator takes the result from the left and passes it as the
19011901
last parameter to the right. This allows for a more natural left-to-right data
19021902
flow similar to method chaining, but can be used with functions that are not
1903-
methods of the data in the pipeline.
1903+
methods of the data in each step.
19041904
19051905
# Traditional structure, read bottom-to-top
19061906
my @result =
@@ -1909,7 +1909,7 @@ methods of the data in the pipeline.
19091909
map { .tc }, # (2) Capitalize the words
19101910
<people of earth>; # (1) Start with the input
19111911
1912-
# Pipeline (left-to-right), read top-to-bottom
1912+
# Feed (left-to-right), read top-to-bottom
19131913
my @result =
19141914
<people of earth> # (1) Start with the input
19151915
==> map { .tc } # (2) Capitalize the words
@@ -1925,7 +1925,7 @@ methods of the data in the pipeline.
19251925
19261926
=head2 infix C«<==»
19271927
1928-
This X<leftward pipeline> operator takes the result from the right and passes
1928+
This X<leftward feed> operator takes the result from the right and passes
19291929
it as the last parameter to the left. This makes visible the right-to-left
19301930
dataflow for a series of list manipulating functions.
19311931
@@ -1936,7 +1936,7 @@ dataflow for a series of list manipulating functions.
19361936
map { .tc }, # (2) Capitalize the words
19371937
<people of earth>; # (1) Start with the input
19381938
1939-
# Pipeline (right-to-left), read bottom-to-top
1939+
# Feed (right-to-left), read bottom-to-top
19401940
my @result =
19411941
sort # (4) Sort, result is <Earth People>
19421942
<== grep { /<[PE]>/ }, # (3) Look for P or E

0 commit comments

Comments
 (0)