There is no built in bitwise-or assignment operator in Kotlin (yet).
What is Kotlin equivalent for bitwise or with assignment '|='?
-
21-07-2023 - |
Question
How to write in Kotlin:
flags |= newFlag
Only what I have found is:
flags = flags or newFlag
Is there a build-in bitwise or
operator with assignment?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow