Run scripts Kotlin can also be used as a scripting language. A script is a Kotlin source file ( . kts ) with top-level executable code. To run a script, pass the -script option to the compiler with the corresponding script file .
Run scripts Kotlin can also be used as a scripting language. A script is a Kotlin source file ( . kts ) with top-level executable code. To run a script, pass the -script option to the compiler with the corresponding script file .