Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess they're just showing off mapKeys, but couldn't that line be eliminated with:

  .groupBy {if (it % 2 == 0) "even" else "odd"}


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: