summaryrefslogtreecommitdiff
path: root/test/strtab.myr
blob: 309df6f417c4bbe946674bd4ce10bdb70cdee11c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std

const strtab = [
	"foo",
	"bar",
	"baz",
	"quux"
]

const main = {
	var i
	for i = 0; i < strtab.len; i++
		std.put("{}: {}\n", i, strtab[i])
	;;
	std.exit(0)
}