January 2020
Intermediate to advanced
532 pages
13h 31m
English
Before you get too excited about functional pipes, let's make sure that we understand the pros and cons of using functional pipes.
From a readability perspective, functional pipes can possibly make the code easier to read and easier to follow. This is because the logic has to be linear. On the contrary, some people may find it less intuitive and harder to read because the direction of computation is reversed as compared to nested function calls.
Functional pipes require single-argument functions, for which they can be easily composed with other functions. When it comes to functions that require multiple arguments, the general solution is to create curried functions – higher-order functions that ...
Read now
Unlock full access