13 lines
455 B
Plaintext
13 lines
455 B
Plaintext
//ww:run
|
|
// A fixed outer array gives the nested-row repeat an exact target length.
|
|
// Package initialization evaluates the row once and fills every remaining row.
|
|
package main;
|
|
let A: [4][2]u64 = [[1u64, 2u64]...];
|
|
export fn main() i32 = {
|
|
if (A[0][0] != 1 || A[0][1] != 2) { return 1; };
|
|
if (A[1][0] != 1 || A[1][1] != 2) { return 2; };
|
|
if (A[2][0] != 1 || A[2][1] != 2) { return 3; };
|
|
if (A[3][0] != 1 || A[3][1] != 2) { return 4; };
|
|
return 0;
|
|
};
|