Avoid using multiple labeled returns in a lambda. Consider restructuring the lambda so that it will have a single exit point. If that's not possible or not clear enough, convert the lambda into an anonymous function.
if the lambda doesn't close over any locals, why not a proper method?
y
yole
05/26/2017, 1:15 PM
kirillrakhman: not sure what you mean. lambdas, anonymous functions and local functions can all close over locals
k
kirillrakhman
05/26/2017, 1:15 PM
I meant, instead of using a local function, you can just use normal function