Post History
Renaming functions A funny, cool, and useful trick. If you have to write a single function multiple times (usually range() on for loops), then you can simply assign a variable by the function's na...
Answer
#1: Initial revision
# Renaming functions A funny, cool, and useful trick. If you have to write a single function multiple times (usually `range()` on `for` loops), then you can simply assign a variable by the function's name, no parentheses. An example assignment is: ``` r=range ``` Thing is, this can only apply to save bytes if the function is either long enough to save more and the times it was used. If not even twice, it's unnecessary. There're rarely any answers using this format for this exact reason. There aren't a lot of times where you'd need to keep adding the same function on the program when it comes to golfing.