Examples

Whole programs, not fragments. Every result below came from compiling and running the program on this page, and a test regenerates this file and fails if any of it has drifted — so nothing here can claim something the compiler does not do.

Single rules are explained in the guide, which now carries its own Examples section on every page. This is for reading real code.

Start with the till. It is the same program four times, and the comparison is the argument.

Output

Every file above is in the repository — follow the filename to read it in context. To run any of them, install the compiler or open a Codespace, where it is a click away.