https://kotlinlang.org logo
#getting-started
Title
# getting-started
m

michaelrice

08/12/2016, 10:40 PM
Hi all. I'm just getting started with Kotlin and with the documentation. Given these two statements
val divBy: (x: Int) -> Boolean = { x -> x % 42 == 0 }
and
val divBy = { x: Int -> x % 42 == 0 }
which seem to be equivalent to me... what's the significance of the colon (or equal sign) after the divBy?