▲ | kijin 8 days ago | |
The usual solution is to wrap it with a closure.
Or using the arrow function syntax:
The same trick also helps when you need to use functions with mandatory extra parameters, functions with pass-by-value parameters, etc. | ||
▲ | moebrowne 7 days ago | parent [-] | |
If the Partial Function Application RFC passes then the closure wont be necessary |