In javascript, can use indexOf to get the index of the value.
const array = [2, 5, 9];
const index = array.indexOf(5);
How to implement it in solidity? I'll get the value from another function, and I want to use that value to find the index in an array(_R2), then delete that value.
uint256[] internal _R2;