Examples of how to use Kotlin.
- variables.kt -> Data types and variables in Kotlin, examples of mutable and immutables variables
- boolean_and_char.kt -> Boolean and char data types and variables
- strings.kt -> String examples in
- statements_expressions.kt -> Statements and expressions
- if_expression.kt -> If expression in Kotlin
- when_expression.kt -> When expression in Kotlin
- loops.kt -> Loops in Kotlin
- null_smart_casting.kt -> Nulls and smart casting examples
- arrays.kt -> Arrays examples
- lists.kt -> Lists examples
- sets.kt -> Sets examples
- maps.kt -> Maps examples
- sequences.kt -> Sequences examples
- command_line.kt -> Sequences examples
- user_input.kt -> Getting user input examples
- read_and_write_file.kt -> Example of how to read and write files
- functions.kt -> Different ways of create function in Kotlin
- lambda_functions.kt -> Examples of Lambda functions in Kotlin
- anonymous_functions.kt -> Examples of Anonymous functions in Kotlin
- local_functions.kt -> Examples of Local functions in Kotlin
- classes.kt -> Examples of how to use Classes in Kotlin
- constructors.kt -> Examples of how to use Constructors, and the Init block in Kotlin
- data_classes.kt -> Examples of how to use Data classes
- class_composition.kt -> Examples of how to use Class compositions and how they can be a best option when compared with inheritance.kt
- companion_objects.kt -> Examples of how to use Companion objects
- need_for_coroutines.kt -> Examples of the need for coroutines, comparison of asynchronous/synchronous code.
- canceled_and_timeout.kt -> Examples of canceled and timed out coroutines
- async_file_reading.kt -> Example of an async file read with coroutines