Closed benmccann closed 6 years ago
The very first example in the docs is:
.groupBy(new KeyFunction<Object>() { public Object apply(List<Object> row) { return Date.class.cast(row.get(0)).getMonth(); })
This is missing an end brace and should be:
.groupBy(new KeyFunction<Object>() { public Object apply(List<Object> row) { return Date.class.cast(row.get(0)).getMonth(); } })
But a much better way to write it would be:
.groupBy(row -> Date.class.cast(row.get(0)).getMonth())
The very first example in the docs is:
This is missing an end brace and should be:
But a much better way to write it would be: