Examples
Every example page includes its maintained Stated source and the exact Go emitted from it during the site build. Verification recompiles every source, compares the generated files byte-for-byte, and checks that the Go compiles.
- Copy values — return a fresh sequence in encounter order.
- Filter values — retain values greater than a threshold.
- Ordered conjunction — apply two threshold conditions.
- Filter and double — filter, then transform with checked arithmetic.
- Conjunction and double — combine two conditions and a transformation.
- Renamed inputs — define domain-specific function and input names.
- Multiple named functions — emit two callable Go functions from one file.
- Forward function calls — call functions declared later in the source.
- Scalar function calls — compose scalar-returning functions.