This is an automated archive made by the Lemmit Bot.
The original was posted on /r/rust by /u/hoochooboo on 2025-05-08 11:13:36+00:00.
Started my Rust learning journey on 1 May (last week). I’'m new to programming in general (started learning Python at the beginning of the year).
Going through ‘The Book’ and Rustlings. Doing Rustlings exercise vecs2 and this bit of code has me smiling ear to ear:
fn vec_map_example(input: &[i32]) -> Vec<i32> { input.iter().map(|element| element + 1).collect()
Called my wife (we both work from home) to see the beauty. She has no idea what she’s looking at. But she’s happy I’m happy.
You must log in or register to comment.