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 Functions
17+ articles
Kotlin Collections
21 posts
Recent Articles
Popular Articles
Kotlin hashSetOf()
Last Updated: 25 May 2025
In Kotlin, a HashSet is a generic, unordered collection that holds unique elements only. It does not allow duplicates and provides constant-time performance for basic oper...
read more
Picked
Kotlin
Kotlin Collections
Kotlin - Collection Operations Overview
Last Updated: 10 May 2025
Kotlin provides a rich set of tools for working with collections like lists, sets, and maps. Whether you want to add, remove, sort, filter, or transform data, Kotlin’s sta...
read more
Picked
Kotlin
Kotlin Collections
Kotlin Collection Transformation
Last Updated: 15 June 2025
The Kotlin Standard Library provides a rich set of extension functions for transforming collections. These transformations help us to build new collections or values deriv...
read more
Picked
Kotlin
Kotlin Collections
Kotlin Collection Write operations
Last Updated: 15 June 2025
In Kotlin, when we work with collections like lists or sets, sometimes we need to change or update their contents. If a collection allows us to modify its elements, we cal...
read more
Picked
Kotlin
Kotlin Collections
Kotlin Aggregate operations
Last Updated: 15 June 2025
When we work with collections like Lists or Arrays in Kotlin, sometimes we want to perform an operation on the entire collection rather than on individual elements. These ...
read more
Picked
Kotlin
Kotlin Collections
Kotlin mutableListOf()
Last Updated: 15 June 2025
In Kotlin, when we want to create a list whose elements can be added, removed, or changed, we use the MutableList interface. To create an object of MutableList, we use the...
read more
Picked
Kotlin
Kotlin Collections
Kotlin hashMapOf()
Last Updated: 15 June 2025
In Kotlin, when we want to store key-value pairs, we can use a HashMap. The function hashMapOf() is used to create an instance of HashMap. A HashMap allows us to store dat...
read more
Picked
Kotlin
Kotlin Collections
Retrieve Single Elements In Kotlin
Last Updated: 15 June 2025
In Kotlin, we can easily retrieve single elements from a collection in many ways depending on our need—by position, by condition, randomly, or by checking if the element e...
read more
Picked
Kotlin
Kotlin Collections
Kotlin mutableMapOf()
Last Updated: 15 June 2025
In Kotlin, mutableMapOf() is used to create a MutableMap. A MutableMap holds key-value pairs where keys are unique, but values can be duplicated. This means that each key ...
read more
Picked
Kotlin
Kotlin Collections
Kotlin | Retrieve Collection Parts
Last Updated: 24 April 2023
The slice function allows you to extract a list of elements from a collection by specifying the indices of the elements you want to retrieve. The resulting list contains o...
read more
Picked
Kotlin
Kotlin Collections
Kotlin Grouping
Last Updated: 15 June 2025
In Kotlin, grouping means collecting items from a collection (like lists) based on some common property or category. The Kotlin Standard Library provides useful functions ...
read more
Picked
Kotlin
Kotlin Collections
Kotlin arrayListOf()
Last Updated: 15 June 2025
In Kotlin, the arrayListOf() function is used to create a new ArrayList. An ArrayList is a mutable collection, which means that we can add, remove, or update its elements ...
read more
Picked
Kotlin
Kotlin Collections
Merge Two Collections in Kotlin
Last Updated: 15 June 2025
Kotlin is a statically typed, general-purpose programming language developed by JetBrains. The company famous for creating world-class IDEs like IntelliJ IDEA, PhpStorm, a...
read more
Kotlin
Kotlin Collections
Sort a List by Specified Comparator in Kotlin
Last Updated: 15 June 2025
Sorting a list is one of the most common operations we perform when working with collections. In this article, we’ll learn how to sort a list by a specified comparator in ...
read more
Kotlin
Geeks Premier League
Geeks-Premier-League-2022
Kotlin Collections
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 !