modCount

protected expect var modCount: Int(source)

The number of times this list is structurally modified.

A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.

This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

2.0
protected actual var modCount: Int(source)

The number of times this list is structurally modified.

A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.

This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.1
protected actual var modCount: Int(source)

The number of times this list is structurally modified.

A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.

This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.3
protected actual var modCount: Int(source)

The number of times this list is structurally modified.

A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.

This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.8
protected actual var modCount: Int(source)

The number of times this list is structurally modified.

A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.

This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.8