7 ms·
>Needing either the index or both is likely a lot more common in Go than in other languages owing to the lack of any sort of iterator or composition In our cod
by kgeist 3y ago
>Needing either the index or both is likely a lot more common in Go than in other languages owing to the lack of any sort of iterator or composition
In our codebase, there's very few instances of needing the index. Usually you just want to iterate over a list and apply some function(s) to the elements or add them to another list.