Hi All, i hope you are having a good weekend. I ha...
# announcements
s
Hi All, i hope you are having a good weekend. I have started to learn kotlin language from https://try.kotlinlang.org/ I am getting difficulty to understand this part from the given code : https://try.kotlinlang.org/#/Kotlin%20Koans/Conventions/For%20loop/Task.kt In the below code snippet what is the exact meaning of
handler: (MyDate) -> Unit
argument , how this works? Anybody has idea about it? Any source to learn more about this kind of arguments?
Copy code
fun iterateOverDateRange(firstDate: MyDate, secondDate: MyDate, handler: (MyDate) -> Unit) {
    for (date in firstDate..secondDate) {
        handler(date)
    }
}