T0026 — STU: aggregates and variables

Part of the roadmap. Phase 2 · wave 8 · size M.

  • Depends on: T0038
  • Area: area:functions, area:core

Goal

$total, aggregate(aggregator[, init]) (N1 §7), sum, min, max, avg, and defineVariable(name[, value]) with 3.0.0 scoping rules.

Acceptance criteria

The spec examples are tests; using $total outside aggregate is a semantic error; conformance groups testAggregate and defineVariable (R5 suite only) pass.