Listings

2.1 Declaring Mutable Variables

2.2 Declaring Read-Only Variables

2.3 Type Inference

2.4 Conditions With if

2.5 when for Cascades of Conditions

2.6 Types of Conditions for when

2.7 Arbitrary Boolean Conditions With when

2.8 If Expression

2.9 Ternary Conditional Operator with if

2.10 Using when as an Expression

2.11 while Loop

2.12 do-while Loop

2.13 for Loops

2.14 Ranges in for Loops

2.15 Declaring a Function

2.16 Calling a Function

2.17 Transforming the Function Body into a Single Expression

2.18 Shorthand Function Notation Using Equals Sign

2.19 Declaring a Main Function

2.20 Defining Default Values for Parameters

2.21 Using Named Parameters

2.22 An Overloaded Function

2.23 Creating and Calling Extension Functions

2.24 Static Resolving ...

Get Kotlin for Android App Development 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.