cardillo / joinery

Data frames for Java
https://joinery.sh
GNU General Public License v3.0
697 stars 167 forks source link

Broken example in docs #64

Closed benmccann closed 6 years ago

benmccann commented 7 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())