Return the index of the first occurrence of a value. Raises ValueError if the value is not present.
builtins/memoryview.index
memoryview.index