4 ms·
Map and filter name what they’re doing, while loops look too much alike. I haven’t checked whether any Go compiler does list fusion between producers and consu
by erik_seaberg 3y ago
Map and filter name what they’re doing, while loops look too much alike.
I haven’t checked whether any Go compiler does list fusion between producers and consumers (to avoid leaving a slice in the heap after reading it just once).