remove

abstract fun remove()(source)

Removes the element returned by the most recent successful next call.

At most one removal is allowed per successful next call. Removing through this iterator preserves its traversal. Implementations reject removal before next, repeated removal, or removal after invalidation. ArrayList iterators use IllegalArgumentException; hash iterators use IllegalStateException.