+4

Why learn lambda functions?

Are lambda functions really any useful (except creating one-liners)?Shall I consider learning them?

6/20/2019 3:51:35 PM

Saksham Jain

3 Answers

New Answer

+5

I would recommend to learn them. With some packages you would need to pass a function as an argument to another function call, then you would not be able to pass local arguments if required. Then you could use: func1(lambda x=x, y=y: func2(x, y)) If you used Tkinter that information could be useful.

+2

Why not?

+1

it is largely used in java streams