https://kotlinlang.org logo
#announcements
Title
# announcements
a

adam-mcneilly

04/25/2018, 10:00 PM
Is there a cool idiomatic way of incrementing a nullable int? I know
?.plus(1)
actually returns a new int rather than incrementing the one it's applied on. I tried
test = test?.apply { this++ }
but that's also invalid.