You are viewing a single comment's thread. Return to all comments →
Rust Solution:
fn introTutorial(V: i32, arr: &[i32]) -> i32 { let index = arr.iter().position(|&x| x == V).unwrap(); return index as i32; }
Intro to Tutorial Challenges
You are viewing a single comment's thread. Return to all comments →
Rust Solution: