Re: [go-nuts] [generics] tiny typo in Map/Reduce/Filter examples

2020-06-19 Thread Ian Lance Taylor
On Wed, Jun 17, 2020 at 9:35 AM Mark wrote: > > At the end of this section where it shows the outputs: > ```go > > floats := slices.Map(s, func(i int) float64 { return float64(i) }) > // Now float2 is []float64{1.0, 2.0, 3.0}. > ``` > shouldn't that be: > ```go > floats := slices.Map(s, func(i

[go-nuts] [generics] tiny typo in Map/Reduce/Filter examples

2020-06-17 Thread Mark
At the end of this section where it shows the outputs: ```go floats := slices.Map(s, func(i int) float64 { return float64(i) })// Now float2 is []float64{1.0, 2.0, 3.0}. ``` shouldn't that be: ```go floats := slices.Map(s, func(i int) float64 { return float64(i) })// Now floats is