I have written this function more than a couple of times and a see some use cases in the wild but always brush it off thinking "why bother, it is so simple to reimplement".
The same argument can be used to bring it in though. It's very low complexity and it helps to keep the typing consistent.
I have written this function more than a couple of times and a see some use cases in the wild but always brush it off thinking "why bother, it is so simple to reimplement".
The same argument can be used to bring it in though. It's very low complexity and it helps to keep the typing consistent.