This is part of the "Android and Kotlin for Beginners" learning path. View Path

Programming in Kotlin: Collections & Lambdas

Aug 16 2022 · Video Course (1 hr, 41 mins) · Beginner

Learn how to create and work with collections of data using differenct collection types in Kotlin and explore lambdas, which is an integral part in many Kotlin codebases.

Version

  • Kotlin 1.6, Android 12, IntelliJ IDEA CE 2022.1.3

Store Data in Collections

Introduction

3:52 Free

Welcome to Programming in Kotlin: Collections & Lambdas! Get an overview of the course, and what topics you’ll cover in the first part.

1

Learn how to group pieces of data in Pairs and Triples, how to work with such constructs, and how to destructure them.

2

Challenge time! Use what you’ve learned about Pairs and Triples to solve a short challenge.

3

Learn what collections of data are and how they behave in memory, then learn about Arrays, a static collection type.

4

Upgrade from an Array to a List, a dynamic collection of data. Compare the performance between an Array and a List.

5

Practice what you’ve learned about Arrays and Lists, the two basic collection types, in a challenge!

6

Learn how to iterate over the Array and List collection types using for loops.

7

Practice iterating over two dimensional collections - matrices, and using exit-early strategies with break and continue.

8

Conclusion

0:47

Review what you’ve learned in the first part of the course.

9

Explore More Collections

Review the concepts you’ve learned so far, and learn about two new collection types - the Map and the Set.

10

Learn what a Map is, how to create one, and how to store key value pairs within the map.

11

Expand your knowledge of maps, to add and remove values, mutate the contents, and learn about three types of mutability.

12

Use what you’ve learned about Maps to solve a fun challenge. Let’s get started!

13

Learn what a Set is, and how it’s unique compared to other collections. Create and use Sets.

14

Challenge time! In this episode, practice using Sets to store unique pieces of data.

15

Conclusion

1:08

Review the collections you learned about in this part of the course, and find out what’s up next!

16

Lambdas & Higher-Order Functions

Introduction

0:32 Free

Get an overview of what we’ll be covering in this part; “lambdas” and learn why it’s important.

17

Review some fundamentals about how functions and lambdas work, as well as their various syntax options.

18

Find out about how lambdas capture data and how they relate to the concept of higher-order functions.

19

Use common higher order function provided by Kotlin to traverse through collections.

20

Learn how to chain higher order functions and see how this can be useful.

21

Practice what you have learned about using lambdas and collections with this series of hands-on coding challenges.

22

Conclusion

1:27

Get a refresher of what was covered in this course and what to expect in the next course in your Android development journey.

23

Next course in this Learning Path

Who is this for?

Beginner developers who’ve had some experience with the fundamentals of the Kotlin language, who want to gain in-depth knowledge of working with collections and lambdas in Kotlin.

Covered concepts

  • Collections
  • Pairs & Triples
  • Lambdas
  • Higher Order Functions
  • Iterating Over Collections

Contributors

Comments