Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.1K+ articles
School Learning
11.5K+ articles
Java
10.0K+ articles
Kotlin
719+ articles
Kotlin Collections
21+ articles
Kotlin Functions
17 posts
Recent Articles
Popular Articles
Kotlin Default and Named argument
Last Updated: 18 May 2025
In most programming languages, we need to specify all the arguments that a function accepts while calling that function, but in Kotlin, we need not specify all the argumen...
read more
Kotlin
Kotlin Functions
Kotlin Higher-Order Functions
Last Updated: 18 May 2025
Kotlin language has superb support for functional programming. Kotlin functions can be stored in variables and data structures, passed as arguments to and returned from ot...
read more
GBlog
Picked
Kotlin
Kotlin Functions
Kotlin Inline Functions
Last Updated: 18 May 2025
In Kotlin, higher-order functions and lambda expressions are treated like objects. This means they can use up memory, which can slow down your program. To help with this, ...
read more
Kotlin
Kotlin Functions
Kotlin infix function notation
Last Updated: 18 May 2025
In this article, we will learn about infix notation used in Kotlin functions. In Kotlin, a function marked with infix keyword can also be called using infix notation means...
read more
Kotlin
Kotlin Functions
Kotlin Function Variations With Examples
Last Updated: 15 June 2025
In Kotlin, while defining a function, we have many optional features and variations that make functions more flexible and easier to use. In this article, we’ll go through ...
read more
Kotlin
Kotlin Functions
Working with Anonymous Function in Kotlin
Last Updated: 21 June 2025
In Kotlin, we can treat functions as expressions by creating lambdas. A lambda is a function literal, meaning it’s a function that doesn’t have a name and is defined direc...
read more
Kotlin
Kotlin Functions
How to Write swap Function in Kotlin using the also Function?
Last Updated: 21 June 2025
Swapping two numbers is one of the most common tasks in programming. Usually, when we swap two values in languages like Java or C++, we either use a third temporary variab...
read more
Kotlin
Kotlin Functions
How to Specify Default Values in Kotlin Functions?
Last Updated: 11 October 2022
In Kotlin, you can provide default values to parameters in a function definition. If the function is called with arguments passed, those arguments are used as parameters. ...
read more
Kotlin
Kotlin Functions
Passing Variable Arguments to a Function in Kotlin
Last Updated: 27 January 2023
There are a lot of scenarios in which we need to pass variable arguments to a function. In Kotlin, You can pass a variable number of arguments to a function by declaring t...
read more
Kotlin
Kotlin Functions
How to Pass a Function as a Parameter to Another in Kotlin?
Last Updated: 21 June 2025
In Kotlin, we have the amazing power to work with higher-order functions. These are special kinds of functions that can take other functions as parameters or even return f...
read more
Kotlin
Kotlin Functions
Function Return and Type Hierarchy in Kotlin
Last Updated: 21 June 2025
Kotlin is a statically typed, general-purpose programming language developed by JetBrains, the company famous for creating world-class IDEs such as IntelliJ IDEA, PhpStorm...
read more
Kotlin
Geeks Premier League
Geeks-Premier-League-2022
Kotlin Functions
Local Functions in Kotlin
Last Updated: 21 June 2025
One of the simplest and most important ideas in programming is to break a large problem into smaller pieces. These small, reusable pieces of code are called functions. Fun...
read more
Kotlin
Geeks Premier League
Geeks-Premier-League-2022
Kotlin Functions
Named Parameters in Kotlin
Last Updated: 21 June 2025
In Kotlin, a parameter is simply a value that we can pass into a function. Inside the function, this parameter acts like a local variable, we can use it just like any othe...
read more
Kotlin
Kotlin Functions
Multiple Return Values in Kotlin
Last Updated: 21 June 2025
Kotlin is a statically typed, general-purpose programming language created by JetBrains, the company that also built world-famous IDEs like IntelliJ IDEA, PhpStorm, and Ap...
read more
Kotlin
Kotlin Functions
Kotlin partition() Method with Examples
Last Updated: 15 June 2025
While coding in Kotlin, there are times when we want to split a list into two separate collections based on a condition for example, separating even and odd numbers. Norma...
read more
Kotlin
Kotlin Functions
Kotlin Collections
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !