Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 19th, 2018
116
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
Iterable<R> mapIndexed<T,R>(Iterable<T> list, R f(int index, T val)) sync*{
int i = 0;
for(T val in list){
yield f(i++, val);
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
snowybot
JavaScript | 4 min ago | 1.95 KB
Untitled
C# | 5 min ago | 15.64 KB
Untitled
Python | 7 min ago | 2.39 KB
Lesson29
C++ | 7 min ago | 1.09 KB
snowybot
JavaScript | 7 min ago | 1.95 KB
update-twitter-to-x-icon
PHP | 15 min ago | 1.15 KB
CASHAPP Free Amazon Giftcard
GetText | 28 min ago | 0.29 KB
Untitled
PHP | 32 min ago | 476.44 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!