Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust char array

let a = String::from("hello");
let chars: Vec<_> = a.chars().collect();
for (i,ch) in a.chars().enumerate() {
  println!("{} {}", i, ch);
}
 
PREVIOUS NEXT
Tagged: #rust #char #array
ADD COMMENT
Topic
Name
6+2 =