6 ms·
> This is where you end up with functions that take 10 different option parameters, all of which activate a different code path. Or you could abstract the comm
by fao_ 11y ago
> This is where you end up with functions that take 10 different option parameters, all of which activate a different code path.
Or you could abstract the commonalities out into a higher-order function.
- jdmichal 11y agoWhat is the higher order function for two disparate code paths, controlled by a parameter switch? `if`?