fn main(){let x=vec![1,2,3,4,5];let y=x.iter().map(|a|{let b=match a%2{0=>"even",_=>"odd"};format!("{}:{}",a,b)}).collect::<Vec<_>>();for i in y{println!("{}",i);}let z=(0..10).filter(|&n|n%3==0).fold(0,|acc,a|acc+a);println!("{}",z);}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: