@BrianGoetz@base58ed@OpenJDK@GavinBierman Any chance for record patterns coming to lambdas?
It would be quite a powerful feature (it could replace Bi/Tri Functions/Consumers etc. in many cases).
Essentially sth like that:
@joshbloch@OsvaldoTorasso And it also worked when replaced the lambda with
new IntPredicate() {
public boolean test(int value) {
return (value & 1) == 1;
}
}
@joshbloch@OsvaldoTorasso That's just a guess that it has sth to do with the fact that when I moved the stream out from the static initialization context it worked 2/n