News for hackers. Stuff that matters.
Re:Practical Go: Real-world advice for writing maintainable ... by irishsultan on Friday February 22, 2019 @05:16AM (#19224273)
Shouldn't you be able to write that as `usersList.stream().forEach(someSet.add)`

For Javascript at least that would work.

Re:Practical Go: Real-world advice for writing maintainable ... by leshow on Friday February 22, 2019 @09:04AM (#19225347)
I haven't written Java since like java 5, but I believe java 8 has syntax for this as well:

`usersList.stream().forEach(someSet::add)`