Join Slack
Powered by
Guys, I have two lists of same length. Want to ite...
# announcements
m
Mani
09/27/2019, 12:49 PM
Guys, I have two lists of same length. Want to iterate them in parallel. Is there a good kotlin way of doing it or just use a for loop with index approach?
s
starsep
09/27/2019, 12:49 PM
What do mean by
in parallel
? Maybe
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/zip.html
will do
m
Mani
09/27/2019, 12:51 PM
thanks, this works 🙂
4
Views
Open in Slack
Previous
Next