#include "std/io.toc"; /* sum ::= fn(n::=, t::=, a: [n]t) t { total : t = 0; for x := a { total += x; } total } main ::= fn() { t ::= int; numbers : [1000]t; for x, i : (&t, t) = &numbers { *x = i; } puti(sum(numbers) as int); } */ ll ::= struct (t::Type) { head: t; next: &ll(t); } main ::= fn() { x: ll(int); }