A LazyList’s lazy aspect might not have been visible in the example above because we are asking the compiler to print every element of the LazyList; hence, every element needs to be computed. But what would happen if we tell the compiler to print the complete LazyList, instead of printing each element?
To get a better understanding of lazy computation, let’s first print a whole List and see how a nonlazy approach would look.