Is there any easy way to invert a Boolean variable...
# announcements
a
Is there any easy way to invert a Boolean variable? Something like
myBoolean.invert()
? It's a bit ugly to write long lines when it's deep in the data structure, e.g.
items[holder.adapterPosition].checked = !items[holder.adapterPosition].checked