Guest User

Untitled

a guest
Mar 23rd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. fn main() {
  2. let word = "good√bye";
  3.  
  4. for ((idx1, _), (idx2, _)) in word.char_indices().zip(word.char_indices()) {
  5. let s = &word[idx1..(idx2 + 1)];
  6.  
  7. println!("s: {}", s);
  8. }
  9. }
Add Comment
Please, Sign In to add comment