2 ms·
You are right that the syntax for making closures is a bit wonky. You either have to give them a name (with 'def'), or you only get a restricted subset of synt
by eru 4y ago
You are right that the syntax for making closures is a bit wonky.
You either have to give them a name (with 'def'), or you only get a restricted subset of syntax (with 'lambda').
In practice, giving them a name is not too much of a hassle.