|
|
|
|
|
by WkndTriathlete
3206 days ago
|
|
Most code that is written has effects - null returns, error returns, exceptions, IO, etc., etc. We can write a custom function to compose every pair of functions we write, but some clever people figured out there were patterns to this madness - map, flatMap, lift, return, etc. - and it's far more efficient to write those patterns once and reuse them. Essentially, it's DRY at a higher level of abstraction. |
|