I've probably had to do this a dozen times in kotl...
# announcements
g
I've probably had to do this a dozen times in kotlin: deciding between an operation and its opposite (its "dual" I believe?) based on a boolean flag:
Copy code
if(someFlag){
  someSet += someElement
}
else {
  someSet -= someElement
}
is there a more expressive way to do this?