2 ms·
> What I don't understand is why slices are indexed in bytes and not in objects. Slicing is an O(1) operation, and that would be an O(n) operation.
by steveklabnik 8y ago
> What I don't understand is why slices are indexed in bytes and not in objects.
Slicing is an O(1) operation, and that would be an O(n) operation.