Run a Kotlin file using Kotlin?


#1

I am writing a simple Kotlin program, that needs to run another .kt file. My question is, what code is needed to run one Kotlin script, using another Kotlin script? Ruby uses: require “file_name.rb”.


#2

https://kotlinlang.org/docs/reference/whatsnew11.html#javaxscript-support