4 ms·
By the way, you don't need a _ assignment there. You can just do i := range mySlice.
by neeee 13y ago
By the way, you don't need a _ assignment there. You can just do i := range mySlice.
- pkulak 13y agoWhich I still do constantly, then get a compile error when what I thought was something else is actually an int.
- dualogy 13y agoThat's a good reason to always include both parts of the LHR: because if that "something else" actually is an int -- then you'll have a nasty bug at your hands (and not a compiler-catchable one at that).