kotlinScript

Execute the given source code as a Kotlin Script, returning the result. This is equivalent to calling PolyglotContext.evaluate and selecting Kotlin as source language with a non-interactive source.

Return

The result of the invocation.

Parameters

source

The source code of the Kotlin Script.


Execute the given source file as a Kotlin Script, returning the result. This is equivalent to calling PolyglotContext.evaluate and selecting Kotlin as source language with a non-interactive source.

Return

The result of the invocation.

Parameters

file

A basic Kotlin Script source file (.kts)