Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust range step

fn main() {
    for x in (1..10).step_by(2) {
        println!("{}", x);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rust #range #step
ADD COMMENT
Topic
Name
6+4 =