News for hackers. Stuff that matters.
Re:The Value in Go’s Simplicity by LandR on Saturday November 16, 2019 @02:38PM (#21554478)
>> In every mainstream language I can think of `map foo myCollection` creates an intermediary map.

Language support for Transducers can fix this, you can compose functions like map / filter / reduce over a collection and only hit each item once.

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>.