Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust get items in a list with index and value

for (i, x) in items.iter().enumerate() {
    println!("Item {} = {}", i, x);
}
 
PREVIOUS NEXT
Tagged: #rust #items #list #index
ADD COMMENT
Topic
Name
3+9 =