Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 23rd, 2018
75
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn main() {
let word = "goodbye";
for ((idx1, _), (idx2, _)) in word.char_indices().zip(word.char_indices()) {
let s = &word[idx1..(idx2 + 1)];
println!("s: {}", s);
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
HTML | 5 sec ago | 0.19 KB
2776206724_WOTC_XComGame.ini
INI file | 59 sec ago | 60.37 KB
2776206724_XComGame.ini
INI file | 2 min ago | 39.81 KB
2776206724_XComGame.INT
INI file | 4 min ago | 28.58 KB
Untitled
C# | 5 min ago | 0.68 KB
system salonu - 92149
HTML | 9 min ago | 6.27 KB
baby.ru - [M] Нижний стики
HTML | 15 min ago | 0.65 KB
Untitled
Bash | 28 min ago | 0.42 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!