I want to use Rust's Enumerate to get both a character and its index in the slice from each iteration: fn main() { for (j, val) in "dummy string".chars().
確定! 回上一頁