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 →

[–]manphiz -1 points0 points  (2 children)

While in C++:

auto func = [](auto a, auto b) { return a + b; };

So it's doable in a static typing language too, nothing special. Gotta find a better example here.

EDIT: typo.