Pipe Operators
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.
The different operators are:
(|>) => pipe forward
(|*>) => multiple-argument pipe forward
(<|) => pipe backward
(<*|) => multiple-argument pipe backward
Note: refer to the documentation for information about operator precedence and associativity.
Let's look at a function call in Coconut that uses pipe forward:
obj |> .attribute |> .method(args) |> func$(args) |> .[index]