listgen

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL