Contributed by: Dautomne_
This is the way everyone in the Programmer Nullposting group says is the best.
fun isEven(num : Int) : Boolean {
return num % 2 == 0
}
Contributed by: Dautomne_
Because I like nuteLla.
fun main() {
val isEven = { x: Int -> x % 2 == 0 }
println(isEven(2))
}