Join Slack
Communities
Powered by
In Kotlin you can define both `increment` and `squ...
# language-proposals
e
elizarov
10/29/2016, 6:54 PM
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
Open in Slack
Previous
Next