1 2 3 4 5 6 7 8 9 10 11
package scala { /* A non empty list. * */ final case class ::[b](hd: b, tl: List[b]) extends List[b] { def isEmpty = false; def head = hd; def tail = tl; } }