hwtest.slist

package hwtest.slist

Type members

Classlikes

sealed abstract class SList

A class of singly-linked immutable lists of integers.

A class of singly-linked immutable lists of integers.

SList differs from List three main ways:

  1. It only supports integers as elements, and therefore does not take a type parameter.
  2. It supports only a handful of methods (but those that it does support exactly mirror the equivalent List methods).
  3. It is NOT designed to support pattern matching.
Companion:
object
object SList
Companion:
class