Coconut provides support for, and in many ways is centered around the use of the pipe operator and pipeline-style function application. The word pipelining is indicative of what these operators do: data processing elements and functions are connected in series with the output of one becoming the input of the next. This makes multiple function calls more readable and simpler to implement.
With pipelines it's a lot easier and clearer to see what is happening and where the data is flowing.
This line of code filters out the even numbers on the interval 0 to 9, puts
them in a list, calculates the list’s sum, and prints the result.
Notice the use of the multiple-argument pipe forward operator
(|*>) to pass both the lambda and the list to filter.
Here, the order of the function calls is the same in the code as it is in
the code’s description: filter, list, sum, and print. Coconut’s use of
pipeline style allows operations to be written in the order that they’re
performed, resulting in intuitive, readable code.