The Baeldung logo
  • The Baeldung LogoKotlin Sublogo
  • Start Here
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Kotlin Collections

Learn about the Kotlin Collections and implementations for Lists, Maps, and Sets. Learn how to work with Kotlin Collections through the guides below.

  • List (29)
  • Array (17)
  • Map (11)
  • JSON (4)
  • reference (3)
  • Data Class (2)
  • Sorting (2)
  • Sequence (2)

>> Join Two Lists in Kotlin

>> Find the Index of an Element in a Kotlin Array

>> Working With Pair in Kotlin

>> Guide to Set and MutableSet in Kotlin

>> The reversed() and asReversed() Functions in Kotlin

>> Shuffle a List in Kotlin

>> Converting a Map to a String in Kotlin

>> Check if Condition Is True for All Elements in a List

>> Get Difference Between Two Lists in Kotlin

>> Prepending an Element to a List in Kotlin

>> Sort LinkedHashMap by Values in Kotlin

>> Creating a List of Objects in Kotlin

>> Get a Not Null Value From a Map in Kotlin

>> Mutating Arrays in Kotlin

>> Reversing a Map in Kotlin

>> Difference Between Collection and Sequence in Kotlin

>> How to Work With List Casts in Kotlin

>> ArrayDeque in Kotlin

>> How to Serialize Arrays in Kotlin With Kotlinx.serialization

>> Flatten List of Lists in Kotlin

>> Get Maximum Value Within a Kotlin Array

>> Kotlin Equivalent to Java String Arrays

>> Creating a Byte Array in Kotlin

>> Sum All the Items in a List of Integers in Kotlin

>> Taking the First N Elements of an Array in Kotlin

>> Add an Element to a List in Kotlin

>> Check if an Array Contains a Given Value in Kotlin

>> Sort Collection of Objects by Multiple Fields in Kotlin

>> Comparing Two Lists in Kotlin

>> Convert a List Into an Array in Kotlin

>> Convert Between List and Set in Kotlin

>> Convert a Kotlin Data Class Object to a Map

>> Kotlin Collections Guide

>> Convert List to String in Kotlin

>> Initialize a Map in Kotlin

>> Initialize a List in Kotlin

>> Iterate Over a Map in Kotlin

>> Guide to Comparing Arrays in Kotlin

>> Guide to Arrays in Kotlin

>> Parsing JSON Arrays in Kotlin with Gson

>> Convert a Mutable Collection Into an Immutable One in Kotlin

>> Modifying Kotlin Lists In-Place

>> Iterate Through a JSONArray in Kotlin

>> Removing Duplicate Elements From Collections in Kotlin

>> Copying a List in Kotlin

>> Combining Two Arrays in Kotlin

>> Copy a Map in Kotlin

>> Remove Duplicate Values From an Array in Kotlin

>> The Difference Between map() and flatMap() in Kotlin

>> Creating Collections with Repeating Elements in Kotlin

>> Get a Random Item From a List in Kotlin

>> IntArray vs Array<Int> in Kotlin

>> Difference Between List and Array in Kotlin

>> Filtering a List in Kotlin

>> Convert Array to List in Kotlin

>> Working With Maps in Kotlin

>> Difference Between ArrayList() and mutableListOf() in Kotlin

>> Aggregate Operations in Kotlin

>> Initializing Empty Mutable Collections in Kotlin

>> Iterating Collections by Index in Kotlin

>> Working With Lists in Kotlin

>> Difference Between fold and reduce in Kotlin

>> Collection Transformations in Kotlin

>> Sequences in Kotlin

>> Finding an Element in a List Using Kotlin

>> Kotlin Immutable Collections

>> Split a List into Parts in Kotlin

>> Initializing Arrays in Kotlin

>> Implementing a Binary Tree in Kotlin

>> Filtering Kotlin Collections

>> Overview of Kotlin Collections API

>> Converting a List to Map in Kotlin

  • ↑ Back to Top
The Baeldung logo

Categories

  • Kotlin Basics
  • Kotlin Classes and Objects
  • Spring with Kotlin

Series

  • Kotlin Collections

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Terms Of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo