3 ms·
Haha, yep, an iterator would definitely be faster than either! I'm coming from Kotlin where I expect there to be a standard library function for simple tasks l
by lolinder 3y ago
Haha, yep, an iterator would definitely be faster than either!
I'm coming from Kotlin where I expect there to be a standard library function for simple tasks like this, but I clearly need to get back in the habit of writing loops by hand.