rocketraman10/10/2018, 12:54 PM
? These operations on
are not inlined, unlike
, so you get the error
. I don't want to use
Suspension functions can only be called within coroutine body
inside the lambda.
Jonathan10/10/2018, 12:55 PM
rocketraman10/10/2018, 12:58 PM
Dico10/10/2018, 1:51 PM
Jonathan10/10/2018, 2:40 PM
will be executed (or if it will be executed at all). This is inherent to sequences since everything will be evaluated lazily on the context of iterator's usage.
Dico10/10/2018, 2:57 PM
can't make any guarantees about where/when the programmer invokes a terminal operation.