// Test grid display showCell : cell -> when cell is 1 then "█" _ then "·"; showRow : row -> reduce (acc cell -> str.concat acc (showCell cell)) "" row; showGrid : grid -> reduce (acc row -> str.concat acc (str.concat (showRow row) "\n")) "" grid; testGrid : [ [1, 0, 1], [0, 1, 0], [1, 0, 1] ]; io.out "Test Grid:"; io.out showGrid testGrid;