fork download
  1. echo "10から1にカウントダウンする: "
  2. for i in countdown(10, 1):
  3. echo $i
  4. # --> Outputs 10 9 8 7 6 5 4 3 2 1 on different lines
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(3, 8) Warning: will be parsed as unary operator; inconsistent spacing is deprecated [Deprecated]
prog.nim(3, 8) Error: type mismatch: got (proc (x: varargs[expr]){.gcsafe, locks: 0.}, int)
but expected one of: 
system.$(x: int)
system.$(x: T)
system.$(x: char)
system.$(x: TEnum)
system.$(x: bool)
system.$(x: string)
system.$(x: float)
system.$(x: cstring)
system.$(x: uint64)
system.$(x: seq[T])
system.$(x: int64)
system.$(x: set[T])

stdout
Standard output is empty