Quite similar to this question: F# pipe first parameter
I am currently learning F# and functional programming, and I want to know if there is an easy way to pipe-forward a first argument (instead of last argument).
For example, if I want to pipe forward the last argument, it looks very nice and clean:
[4;5;6]
|> List.append [1;2;3]
// Result: [1;2;3;4;5;6]
If I want to pipe-forward the first argument, I can use a "fun x ->" function, but I am just curious if there is a cleaner way.
[1;2;3]
|> fun x -> List.append x [4;5;6]
// Result: [1;2;3;4;5;6]
Thank you very much.
P.S. My coworker just helped me with this problem. But I would appreciate any help if you have any suggestions for an F# beginner. Thank you.