Kotlin return Function from Function

With Kotlin, we can define a function that chooses the appropriate logic variants for specific cases and returns one of them as another function. In this tutorial, we’re gonna look at how to return Function from Function.

Kotlin Lazy Initialization Example

Lazy Initialization is a common pattern for delaying creation of an object, calculation of a value, or an expensive process until it’s accessed for the first time. It is helpful when the initialization process consumes significant resources and the data isn’t always required when the… Read More

Kotlin Singleton with Object Declaration

In object oriented programming, there is a common situation when you want a class to have only one instance. In Java, we usually implement using the Singleton Design Pattern: define a class with a private constructor and a static field holding the only existing instance… Read More

Kotlin Fold Example

This Kotlin tutorial shows you example that uses Fold method on List, Map of Objects. Related Post: Kotlin List & Mutable List tutorial with examples