2 ms·
I just want to point out that the pipeline operator (or, more accurately, the forward application operator), is not provided by many ML implementations, but it'
by groovy2shoes 13y ago
I just want to point out that the pipeline operator (or, more accurately, the forward application operator), is not provided by many ML implementations, but it's trivial to define it yourself. Here it is in Standard ML:
infix |>;
fun x |> f = f x;
The definition is also similar in Haskell:
x |> f = f x
And in OCaml:
let (|>) x f = f x;;
F# and Elm provide this operator out of the box.