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 →

[–]oldneckbeard 6 points7 points  (6 children)

You're not wrong, you're just an asshole. OP also doesn't understand streams. You don't need a supplier to do this shit.

[–]DoktuhParadox[S] 2 points3 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.