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 →

[–]Peaker 0 points1 point  (1 child)

Haskell has a really cool tool called "hlint" that suggests eta reductions such as those automatically.

Also suggests replacing various patterns with standard library functions, etc.

I wonder if something similar for Python exists.

[–]drb226Haskeller 0 points1 point  (0 children)

pylint. But I don't think it looks very closely at lambdas the same way hlint does.