|
|
|
|
|
by pivo
5317 days ago
|
|
The :: is Scala's cons operator, the Nil means end-of-list. It's actually much more common in Scala to create a list like so: val nn = List("Jim","Bob")
This creates the same list that the example using :: did. It doesn't need to be explicitly terminated with Nil. |
|