Documentation
¶
Overview ¶
Command listgen generates list_gen.go: the eager List[T] mirror of the Seq[T] operation set.
It parses the package's Seq method declarations and emits one List method per Seq method, skipping:
- methods annotated //catena:seq-only (Once, Pull, ToChan, UntilDone, Zip, Seq — meaningless or differently-shaped on an eager type), and
- names defined by hand in list.go (Append, with List semantics).
Bodies delegate through the Seq implementation (the C15 conformance test in list_test.go asserts exactly that equivalence), except a small override set where eagerness buys exact preallocation or O(1) access.
Click to show internal directories.
Click to hide internal directories.