Re:The Value in Go’s Simplicity
by erik_seaberg on Saturday November 16, 2019 @07:25PM
(#21555802)
Even Java can do this. You only pay for another Collection<T> if you actually #collect the elements of a Stream<T>.
Language support for Transducers can fix this, you can compose functions like map / filter / reduce over a collection and only hit each item once.