Operators: Arithmetic, In, and Range
Explore how to use arithmetic operators, the in operator, and range expressions in Kotlin. Understand operator overloading to improve code readability and functionality while working with numbers, collections, and ranges.
We'll cover the following...
We'll cover the following...
Arithmetic operators
Let’s start with arithmetic operators, like plus or times. These are easiest for the Kotlin compiler because it just needs to transform the left column to the right.
Expression | Translation |
|
|
|
|
|
|
|
|
|
|
|
|
...