type label … const debug … // debugging. check that the (d,k) pair is valid // (that is, -d<=k<=d and d+k even) func checkDK(D, k int) { … } func (t *label) set(D, k, x int) { … } func (t *label) get(d, k int) int { … } func newtriang(limit int) label { … }