Ahmed Ibrahim
08/05/2020, 10:23 AMtoggleElement(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.