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.
`usersList.stream().forEach(u -> someSet.add(u))`
It's immediately obvious that u is a user in usersList. I realize that it's debatable if u is really more readable than spelling out user, but I prefer it, and I don't think anyone is going to be confused by it. If the chain does get really long, also, I will spell it out explicitly.