val myList = List(1, 2, 3, 4, 5) // Creating a lazy view val myLazyView = myList.view // Applying transformations (lazy) val doubledAndFiltered = myLazyView.map(_ * 2).filter(_ > 3) // Forces the evaluation of the view val result = doubledAndFiltered.toList println(result) // Output: List(4, 6, 8, 10)