Arrays
Learn about the array data structure, how it differs from lists and sets, and how you can use them in Kotlin.
We'll cover the following
Like lists and sets, arrays store multiple values in a linear data structure.
What is an Array? #
An array is a basic data structure in all programming languages. It stores multiple elements by placing them consecutively in memory. This structure is represented in the following illustration:
Get hands-on with 1400+ tech skills courses.