Data Collection, Iterators, and Filters

This chapter covers the standard Kotlin library of collections. We will learn how Kotlin divides collections into two groups—immutable collections, which are read-only, and mutable collections, which allow us to update them. We will start this chapter by looking at the range collection and its functions. We will then explore arrays, their built-in functions, and arrays with lambda expressions. After that, we will move on to looking at immutable list types and will discuss iterables, collections, and list interfaces. We will then explore mutable lists, including mutable iterables, mutable collections, and mutable list interfaces. We will take a brief look at sets and maps, and finish this chapter by talking about iterators and types of iterators in Kotlin.

The following topics will be discussed in this chapter:

  • Range
  • Array
  • Iterable
  • Collection
  • List
  • Set 
  • Maps
  • Mutable iterable
  • Mutable collection
  • Mutable list
  • Iterators
  • Filters

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.144.194