iterator

open operator fun iterator(): SyncIterator<SyncList.Item>

Return

a new SyncIterator to receive all elements from this SyncList using a for loop.

Example:

val list = syncClient.lists.openExisting("MyList")

for (item in list) {
println("${item.index}: ${item.data}")
}