4 ms·
> I don't think it's "wrong" per se I do. I think it only makes sense for ranges to be inclusive at the lower end and exclusive at the higher end. A slice with
by pansa2 2y ago
> I don't think it's "wrong" per se
I do. I think it only makes sense for ranges to be inclusive at the lower end and exclusive at the higher end. A slice with a negative step `-n` should contain the same elements as the same slice as with step `n`, just reversed.