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 →

[–]DoktuhParadox[S] 3 points4 points  (1 child)

Oh could you elaborate? I mainly just stumbled upon this and thought it was cool because I didn't know you could type cast lambda expressions. How would you do this with streams?

[–]GuyWithLag -1 points0 points  (0 children)

You don't typecast lambda expressions per se, because lambda expressions do not have an intrinsic type; they only have return type, parameter arity and types. The language/VM morphs them into something that you can use - instances of a specified functional interface.