News for hackers. Stuff that matters.
Re:Teeing, a hidden gem in the Java API by bloat on Monday May 10, 2021 @04:41AM (#27103914)
True, sometimes imperative loops are easier than streams. But your code is not a suitable substitute in this case where the constraints are clear. He does want the total sum, and he does want the list, and he does only want to iterate once.

There are no comments on this comment yet.