Replace the callback interface with Higher-order function in Kotlin

1 · Burhanuddin Rashid · July 21, 2019, 9:03 a.m.
At Google IO 2019 Google announced that the Kotlin programming language is now the preferred language for Android app developers. Android development will become increasingly Kotlin-first. That means everything they are going to build for Android will be developed in Kotlin first as their first-class language. If anyone has not started with Kotlin yet then now it’s a really good time to switch to Kotlin. Motivation It’s pretty simple and straightforward to start with Kotlin if we are building an...