- #01 Basic Syntax
- 1.1 Package definition and imports
- 1.2 Program entry point
- 1.3 Function
- 1.4 Variables
- 1.4.1 Read-only local variables are defined using the keyword val
- 1.4.2 Variables that can be reassigned use the var keyword.
- 1.5 Creating classes and instances
- 1.6 Inheritance
- 1.7 Comments
- 1.8 String templates
- 1.9 Conditional expressions
- 1.10 for loop
- 1.11 while loop
- 1.12 when Expression
- 1.13 Ranges
- 1.14 Nullable values and null checks
- 1.15 Exceptions
- 1.16 Type checks and automatic casts
- #02 Idioms
- 2.1 Create DTOs (POJOs/POCOs)
- 2.2 Default values for function parameters
- 2.3 Filter a list
- 2.4 Check the presence of an element in a collection
- 2.5 String interpolation
- 2.6 Instance checks
- 2.7 Read-only list
- 2.8 Read-only map
- 2.9 Access a map entry
- 2.10 mutableMapOf
- 2.11 Access a map entry
- 2.12 Traverse a map or a list of pairs
- 2.13 Lazy property
- 2.14 Extension functions
- 2.15 Create a singleton
- 2.16 Instantiate an abstract class
- 2.17 If-not-null shorthand
- 2.18 If-not-null-else shorthand
- 2.19 Execute a statement if null
- 2.20 Get first item of a possibly empty collection
- 2.21 Execute if not null
- 2.22 Map nullable value if not null
- 2.23 Return on when statement
- 2.24 try-catch expression
- 2.25 if expression
- 2.26 Builder-style usage of methods that return Unit
- 2.27 Single-expression functions
- 2.28 Call multiple methods on an object instance (with)
- 2.29 Configure properties of an object (apply)
- 2.30 Swap two variables
- 2.31 Mark code as incomplete (TODO)
- The remaining documentation can be consulted at http:// https://kotlinlang.org/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
marcossouz/kotlin-fundamentals
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published