4 ms·
If "partial" were only usable for this one function you'd be right. But actually it's a very common, general function (under various names); in many languages i
by lmm 9y ago
If "partial" were only usable for this one function you'd be right. But actually it's a very common, general function (under various names); in many languages it's already present in the standard library, or at least in an established library that's commonly used.
Fundamentally this is what programming is all about - finding the commonality that you can pull out and reuse, rather than doing every single case by hand.