← Docs
kotlin-stdlib / kotlin.collections / MutableIterator / remove

remove

Common
JVM
JS
Native
1.0
abstract fun remove ( )
(Common source) (Native source)

Removes from the underlying collection the last element returned by this iterator.

Exceptions

IllegalStateException - if next has not been called yet, or the most recent next call has already been followed by a remove call.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .