Scrpting, compiled & Interpreted language, in order to run simple code the code you must download kotlin and the java jre. Or install it through an IDE (Intellij, Android Studio or Eclipse.)
personal note I really like this language, it takes a lot of the things learned from python and problems with java and makes a more flexible, less dangerous (null exceptions, no casting, no primitive data types) language.
You can run kotlin from https://play.kotlinlang.org/
- idomatic kotlin
- play the code here
- Source code FizzBuzz2.kt
- kotlin using java idoms
- play the code here
- Source code FizzBuzz1.kt
If you have more complex code in mind you can use an IDE
If yu want to run it at the command line, download kotlin
# source in fn.kt
# compile
$ kotlinc fn.kt -include-runtime -d fn.jar
# interpret
$ java --jar fn.jar
- https://kotlinlang.org/
- idiomatic use of if as a function: https://kotlinlang.org/docs/reference/control-flow.html