DEV Community

Discussion on: Daily Challenge #194 - Spread Number

Collapse
 
jay profile image
Jay

Rust

fn spread(n: u32) -> Vec<u32> {
    (1..n + 1).collect()
}

Playground