Coding Friction


Higher order function

In Kotlin, a higher-order function is a function that takes one or more functions as arguments, or returns a function as its result. It enables you to treat functions as first-class citizens, meaning you can use them just like any other values, such as integers or strings. Passing lambda expression as a parameter to Higher-Order …

Higher order function Read More »

Kotlin Lambda Function

Lambda is a function which has no name. It is a concise way to define a block of code that can be passed around as an argument to higher-order functions or stored in a variable for later use. Lambda functions are useful in various contexts, such as higher-order functions, collections operations (like map, filter, and …

Kotlin Lambda Function Read More »

Java Lambda Expression

Lambda expression provide implementation of functional interface (interface that has only one abstract method). it’s treated as function . Without lambda expression Lambda expression Examples