© Peter Späth 2019Peter SpäthLearn Kotlin for Android Developmenthttps://doi.org/10.1007/978-1-4842-4467-8_5
5. Expressions: Operations on Data
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.
Expressions can be subdivided into different types: numerical expressions, boolean expressions, string and character expressions, expressions acting on bits and bytes, and a few more unclassified expressions. Before we start explaining them in ...