https://kotlinlang.org logo
#android
Title
# android
m

menegatti

12/27/2017, 10:30 AM
their sequence is based on an iterator… so I’m not sure why it wouldn’t work
@Joe check line 115, there’s your culprit 😄
j

Joe

12/27/2017, 10:34 AM
I believe you, but I don’t understand exactly why. 😊
m

menegatti

12/27/2017, 10:34 AM
on each
hasNext
is checks that the size of the list hasn’t changed
and it does, since you’re deleting it
j

Joe

12/27/2017, 10:34 AM
Ah, okay
It’s an explicit throw. Okay, well that sucks, but good to know.
m

menegatti

12/27/2017, 10:38 AM
note to self, don’t use anko’s
childrenSequence
for removing views