jw
09/11/2017, 9:17 PMChannelIterable
that has fun iterator(): ChannelIterator<T>
?orangy
ChannelIterator
?jw
09/11/2017, 9:20 PMIterator
but with suspend
on the functionsorangy
ReceiveChannel
? Why?jw
09/11/2017, 9:22 PMfor (value in myType)
instead of for (value in myType.iterator())
orangy
*Iterable
interface for this, just an operator fun
with compatible signaturejw
09/11/2017, 9:27 PMjw
09/11/2017, 9:28 PMjw
09/11/2017, 9:29 PMorangy
iterator
signature from the interface and implement it, should just work without explicit call to iterator()
in a for
loopjw
09/12/2017, 2:27 AMjw
09/12/2017, 2:29 AMjw
09/12/2017, 2:35 AMorangy
elizarov
09/12/2017, 8:01 AM