3 ms·
For example pretty much any higher-order function that wants to do some decision-making and then hand over execution to one of several functions provided will w
by jhgb 4y ago
For example pretty much any higher-order function that wants to do some decision-making and then hand over execution to one of several functions provided will want to hand over execution by means of a tail call, so that it doesn't unnecessarily change stack complexity for whatever algorithm is being run around that piece of code.