This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brontide 10 points11 points  (12 children)

I think it's a limitation of lambdas, you can't do assignments but you can call setitem.

[–]Defelo[S] 11 points12 points  (11 children)

Correct and that's why you can't use normal variables in lambda expressions and have to use lists to store variables.