Anonymous user
Langton's ant: Difference between revisions
→{{header|Nim}}: Compiles with Nim Compiler Version 0.12.1 (include sequtils, annotate Color type of the final 'x')
m (→{{header|Sidef}}: modified code to work with Sidef 2.10) |
(→{{header|Nim}}: Compiles with Nim Compiler Version 0.12.1 (include sequtils, annotate Color type of the final 'x')) |
||
Line 3,698:
=={{header|Nim}}==
{{trans|Python}}
<lang nim>import strutils, sequtils
type
Line 3,730:
for row in m:
echo map(row, proc(x: Color): string =
if x == white: "." else: "#").join("")</lang>
|