In F# you have the backward pipe operator <|
, which like its brother |>
serves as a way to pass parameters into functions...
Now I already understand the great idea behind having |>
, letting the programmer easily see the value affected rather than having to go through a chain of nested function calls is awesome and looks beautiful:
let newList = someList
|> List.map (fun x -> x * 3)
|> List.filter (fun x -> x > 12)
So my question is, if functions are called like funcName param
anyway, what's the point of having funcName <| param
?
I've also seen some write functions like this func1 <| value |> func2
what exactly does that do?