2 ms·
A big difference is that it must include the thing the functions act upon (self). In functional programming you often leave that out. In FP you can also refacto
by Jaxan 1y ago
A big difference is that it must include the thing the functions act upon (self). In functional programming you often leave that out. In FP you can also refactor little pieces of the chain into its own separate name (eg: smallest = sort >> head). This avoids long chains.
- fuzztester 1y agoInteresting. In which functional programming languages (that you know), can this be done? That refactoring little pieces, I mean. Looks like it would help with code readability.