samp
07/30/2017, 2:40 AMhandler: (MyDate) -> Unit
argument , how this works? Anybody has idea about it? Any source to learn more about this kind of arguments?
fun iterateOverDateRange(firstDate: MyDate, secondDate: MyDate, handler: (MyDate) -> Unit) {
for (date in firstDate..secondDate) {
handler(date)
}
}