Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The current function has the same restriction. In their case it's in the form of " * 3 ".


That `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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: