Coming from the F# world, I am used to using |>
to pipe data into functions:
[1..10] |> List.filter (fun n -> n % 2 = 0) |> List.map (fun n -> n * n);
I assume that PureScript, being inspired by Haskell, has something similar.
How do I use the pipe operator in PureScript?
Yes, you can use
#
which is defined in Prelude.Here is your example, rewritten using
#
:http://try.purescript.org/?gist=0448c53ae7dc92278ca7c2bb3743832d&backend=core