lembark (6) [Avatar] Offline
Q: If "::" is normally called "cons", what is "tens"?

scala> val listB = 40 :: tens
listB: List[Int] = List(40, 10, 20, 30)

The :: is a function that adds an element to
the front of the list, and returns a new list.
In FP languages it commonly called ‘cons’.
aslam.khan (50) [Avatar] Offline
Re: Not sure what "tens" indicates on p. 46
It's a typo, as noted in another thread. It should be

val listB = 40 :: listA