Join Slack
Powered by
I've probably had to do this a dozen times in kotl...
# announcements
g
groostav
06/14/2017, 6:10 PM
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?
Open in Slack
Previous
Next