|
|
|
|
|
by teaearlgraycold
1414 days ago
|
|
Only complaint here is on the function signature. Normally a pipe operator takes in arguments first and then sequential functions. This pipe function fixes the reverse ordering of nested function calls, but the starting inputs will always appear at the end. You've gone from: fourth(third(second(first)))
to pipe(second, third, fourth)(first)
when you could have done pipe(first, second, third, fourth)
|
|
[1]: https://gcanti.github.io/fp-ts/modules/function.ts.html#pipe
[2]: https://gcanti.github.io/fp-ts/modules/function.ts.html#flow