last index of returns -1 when the value only exists at index 0
last index of returns -1 when the value only exists at index 0: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling last index of on an array where the target value's last (or only) occurrence is at index 0, the function incorrectly returns -1 instead of 0 .
The task
When calling `last_index_of` on an array where the target value's last (or only) occurrence is at index 0, the function incorrectly returns `-1` instead of `0`.
Part of FineEnvs/repo2rlenv-r2e-gym.