In Kotlin you can define both `increment` and `squ...
# language-proposals
e
In Kotlin you can define both
increment
and
square
as extension properties, use the power of Kotlin's type inference, and enjoy much easier to read code as a result:
Copy code
val myValue = 66
val myNewValue = myValue.increment.square