3 ms·
You can define a function anywhere, including in the scope of another function. So it doesn't need to be floating somewhere far away from where it's used. (This
by maxbond 4y ago
You can define a function anywhere, including in the scope of another function. So it doesn't need to be floating somewhere far away from where it's used. (This is the idiomatic way to write decorators, for example.)