3 ms·
> I've demonstrated how you map a function over a list containing any type. How would you do it? Provide a solution. you've demonstrated you are unable to do i
by nostalgeek 8y ago
> I've demonstrated how you map a function over a list containing any type. How would you do it? Provide a solution.
you've demonstrated you are unable to do it while conserving the type of an element.
You iterate over an array with a range loop which allows the code to stay compile time safe. That's the only thing one can call idiomatic go code here. You threw out compile time safety for nothing trying to prove some point that makes no sense to begin with.