Kotlin is more convenient
Constructor
-
Times constructor
-
Primary constructor
-
Main constructor in a statement attribute
Function to simplify
-
Use
=
connected Return value -
Parameter Default
-
Named parameters
-
Local function
String
- String template
- Native string
Arrays and collections
- Operator and set arrays
- forEach
- filter
- map
- flatMap
- Range
- Sequence
Conditions control
- if/else
- when
- for
- try-catch
- ?.with?:
==
with===
reference