Langton's ant: Difference between revisions
m
→{{header|jq}}: ANSI code
m (→{{header|jq}}: ANSI code) |
|||
Line 4,652:
| ($grid|length) as $height
| ($grid[0]|length) as $width
| reduce range(0;$height) as $i ("\
. + reduce range(0;$width) as $j ("\n";
. + if $grid[$i][$j] then " " else "#" end ) );
|