Langton's ant: Difference between revisions

m
m (→‎{{header|jq}}: ANSI code)
Line 4,652:
| ($grid|length) as $height
| ($grid[0]|length) as $width
| reduce range(0;$height) as $i ("\u001BHu001B[H"; # ANSI code
. + reduce range(0;$width) as $j ("\n";
. + if $grid[$i][$j] then " " else "#" end ) );
2,442

edits