4 ms·
Well, if you don't mind that it doesn't work correctly with slices: [0], then sure, you may return indices. [0] https://go.dev/play/p/Q2ntuaugbGQ https://go.de
by Joker_vD 2y ago
Well, if you don't mind that it doesn't work correctly with slices: [0], then sure, you may return indices.
[0] https://go.dev/play/p/Q2ntuaugbGQ https://go.dev/play/p/Q2ntuaugbGQ
- benmmurphy 2y agoIt does work with slices as long as you use the slice to update as well
- maerF0x0 2y agoThat didn't work because you didn't pass the same slice in. You subsliced your things slice, which outputs a new slice.