LazyList was introduced in the latest version of Scala, i.e., 2.13.0. In older versions, instead of LazyLists, Streams are used. They are identical to LazyLists in almost every way. The only difference is that while LazyLists are completely lazy, Streams compute the head element even when not required.
With LazyLists, we end our discussion on collections. Let’s wrap up this chapter with a quiz to test what you have learned so far.