We already used expressions a couple of times. Whenever you need to assign a value to a variable, need function call parameters, or need to provide a value to some kind of language construct, you need an expression. Expressions also show up where you don’t expect them, and they can be ignored if we don’t need them.
5. Expressions: Operations on Data
Get Learn Kotlin for Android Development: The Next Generation Language for Modern Android Apps Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.