A class of singly-linked immutable lists of integers.
SList
differs from List
three main ways:
- It only supports integers as elements, and therefore does not take a type parameter.
- It supports only a handful of methods (but those that it does
support exactly mirror the equivalent
List
methods). - It is NOT designed to support pattern matching.
- Companion:
- object
class Object
trait Matchable
class Any