|
|
|
|
|
by piaste
1596 days ago
|
|
The pipe operator can be replaced by a T.Pipe(Func<T, U>) generic extension function. In fact, I've defined it and occasionally use it in F# when I'm working with extensive C# fluent APIs, because it looks nicer than breaking them up with a single |>. |
|
C# Fluent API's aren't really piped things since they usually just mutate a variable underneath (hence the ignore often at the end of them in F#). I don't think fluent API's and piped functions are the same thing, and the pipe operator allows any function that matches the signature to be put in.