https://kotlinlang.org logo
#compose
Title
# compose
i

Irving

12/03/2020, 11:47 AM
I just migrated to alpha08 and then :
androidx.compose.ui.util.fastAny
and
androidx.compose.ui.util.fastForEach
can't resolve. The util lib need i resolve manually?
a

allan.conda

12/03/2020, 11:48 AM
androidx.compose.ui.ui-util
1
i

Irving

12/03/2020, 11:49 AM
Thanks Allan!
a

allan.conda

12/03/2020, 11:49 AM
seems everyone’s updating to alpha08 at the same time lol
c

Cyril Find

12/03/2020, 11:50 AM
what ? i've been using the slow foreach all this time like an idiot ??
a

allan.conda

12/03/2020, 11:50 AM
not slow, just not “fast” 😄
😄 1
c

Cyril Find

12/03/2020, 11:50 AM
more seriously what's the point of these ?
a

allan.conda

12/03/2020, 11:52 AM
😄 3
forEach() and any() use an iterator that can be
avoid when using fastForEach() and fastAny(). Also
added a fastForEachIndexed() for uses of that method.
🙌 2
c

Cyril Find

12/03/2020, 11:54 AM
ah right I see it can be avoided because it's specific to
List
, thanks !
6 Views