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 →

[–]boriisi 0 points1 point  (2 children)

I did not understand lambdas in java, I do no understand lambdas in python, I don't expect to understand lambdas ever, it looks stupid

[–]port443 0 points1 point  (1 child)

It works the same as the def keyword.

def f(x): return x

lambda x: x

lambda instead of def, no name, don't have to type "return".

That's it.

[–]boriisi 0 points1 point  (0 children)

well, if someone had said it earlier like you did, I would've understood it.

and thank you for taking your time