Skip to content

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.

  1. Copy values — return a fresh sequence in encounter order.
  2. Filter values — retain values greater than a threshold.
  3. Ordered conjunction — apply two threshold conditions.
  4. Filter and double — filter, then transform with checked arithmetic.
  5. Conjunction and double — combine two conditions and a transformation.
  6. Renamed inputs — define domain-specific function and input names.
  7. Multiple named functions — emit two callable Go functions from one file.
  8. Forward function calls — call functions declared later in the source.
  9. Scalar function calls — compose scalar-returning functions.

Stated compiles controlled English deterministically. It does not call an LLM at compile time.