3 ms·
It is clearer, but uses a fixed number of arguments, so may be unsuitable for some applications.
by jasallen 13y ago
It is clearer, but uses a fixed number of arguments, so may be unsuitable for some applications.
- aidos 13y agoThe current function has the same restriction. In their case it's in the form of " * 3 ".
- garethadams 13y agoThat `3` can be trivially replaced with a variable in a way that `(i, i, i)` cannot. But still, the refactoring of the iterator into a separate variable is the key step which reinforces that the same object is being passed 3 times
- luikore 13y agoYou don't have to use the same function to solve every problem.