Module 07 of 12

Collections & Sequences

Lessons

About This Module

Working with groups of values is part of almost every program, and the Kotlin standard library gives you a rich toolkit for it. You'll learn the three main collection types, List, Set, and Map, and the difference between read-only and mutable collections such as MutableList.

You'll also learn to transform data with functions like map and filter, and how sequences evaluate those operations lazily, so large or chained operations avoid building intermediate collections. By the end you'll know when to reach for a plain collection and when a sequence is the better choice.

Watch the lessons in order, then continue on to Generics & Extensions.

Lessons

4 videos
01

Kotlin Collections Tutorial - Understanding List, Set & Map

Introduces the main Kotlin collections, List, Set, and Map, and how each one works.

02

Kotlin Collections (Immutable and Mutable) List, Set, Map

Covers the basics of lists, sets, and maps, and the difference between immutable and mutable collections.

03

Kotlin Tutorial: Collection.map { ... }

Explains how to use map on a collection to transform one list into another.

04

Kotlin Sequences Tutorial: Lazy Collection Processing for Better Performance

Shows how Kotlin sequences use lazy evaluation for efficient collection processing.