sealed abstract
A linked list with by-name head and tail, allowing some control over memory usage and evaluation of contents.
This structure is a good choice when the contents are expensive to calculate and may not all need to be evaluated, at the cost of an overhead when the contents are calculated. Typeclass instances try to defer evaluation of contents, unless it would require a full traversal of the spine, preferring lazy semantics when an evaluation choice is to be made.
- Companion
- object