fn eps(x: &[i32],y: i32) -> i32 {
let mut b = 0;
while b < x.len() {
if x[b] == y{
return 1;
}
b += 1;
}
return 0;
}
fn main() {
let v = [1, 2, 3];
println!("{}",eps(&v,1));
}
To embed this project on your website, copy the following code and paste it into your website's HTML: