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

In the last example's "for" loop, a Set would probably be clearer and more efficient than a List for gathering distinct elements, at least for large data sets. I haven't tried the functional Java yet, but I wonder if using Collectors.toSet() and skipping the distinct() stage would be better?


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

Search: