Jump to content

Optional parameters: Difference between revisions

Updated to work with Nim 1.4: added missing parameter type, replaced "future" with "sugar", replaced "repeatChar" with "repeat".
(Updated to work with Nim 1.4: added missing parameter type, replaced "future" with "sugar", replaced "repeatChar" with "repeat".)
Line 2,057:
 
=={{header|Nim}}==
<lang nim>import algorithm, strutils, futuresugar
 
proc printTable(a: seq[seq[string]]) =
for row in a:
for x in row: stdout.write x, repeatCharrepeat(' ', 4 - x.len)
echo ""
echo ""
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.