3 ms·
If you want to "close over" the value in the closure then there's a simple trick you can use: Pass a keyword argument with the default value equal to the value
by geysersam 2y ago
If you want to "close over" the value in the closure then there's a simple trick you can use:
Pass a keyword argument with the default value equal to the value you want to close over.
Voila!