v1.9.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.collections / MutableSet / remove

remove

Common
JVM
JS
Native
1.0
abstract fun remove(element: E): Boolean
(Common source) (Native source)

Removes a single instance of the specified element from this collection, if it is present.

Return true if the element has been successfully removed; false if it was not present in the collection.

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