An alternative way of building and matching lazy lists using LazyList.cons(hd, tl).
| Supertypes | |
|---|---|
| Self type |
A lazy list consisting of a given first element and remaining elements
| Value parameters |
|
|---|
Maps a lazy list to its head and tail
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/collection/immutable/LazyList$$cons$.html