Replace Inline doesn’t utilise indexes, just values. Not sure if I understood you right:
But this will replace the element at index 22 with the element at index 33. It does not care what the element value is.