fun substr<> (x: int^n^n) returns (d: int) let d = x[0][0] - n; tel fun mean<> (i: int) returns (m: int) let m = substr<> (i^n^n) tel