Re:Common Python Mistakes
by maxerickson on Thursday May 08, 2014 @03:30PM
(#7717160)
A function defined with def would work just the same there.
It would have a big ugly 'return' in it and be a few characters longer, but it would work the same, so I don't see what lambda brings to it.
Being more explicit and less hacky can well be combined with staying true to functional style:
It does the closure-capturing of n for you.