Is there a method like `toggleElement(element: E)`...
# announcements
a
Is there a method like
toggleElement(element: E)
in the Kotlin's collections stdlib? This method removes the element if exists and adds if not. I know that I can write it myself since it's straightforward, but I thought maybe Kotlin has such a method.
🚫 4