13.4. Lists
In Scala, a list is either Nil (that is, empty) or an object with a head element and a tail that is again a list. For example, consider the list
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial