What is ideomatic way of handling methods which can panic. For example take a look at next code
fn main() {
let v = [1, 2];
let b = v.split_at(4);
println!("{:?}", b);
}
split_at will panic because array doesn't have element at index 4, but how i can handle it as rust has not try catch