fork download
  1. import system
  2.  
  3. proc test(foo: seq[string], bar: int64) =
  4. for i in 0..<min(len(foo), bar):
  5. stdout.write(foo[i])
  6.  
Compilation error #stdin compilation error #stdout 0s 6828KB
stdin
Standard input is empty
compilation info
prog.nim(5, 21) Error: type mismatch: got (seq[string], int64)
but expected one of: 
proc `[]`[Idx, T](a: array[Idx, T]; x: Slice[Idx]): seq[T]
proc `[]`(s: string; x: Slice[int]): string
proc `[]`[T](s: seq[T]; x: Slice[int]): seq[T]
proc `[]`[I: Ordinal, T](a: T; i: I): T
proc `[]`[Idx, T](a: array[Idx, T]; x: Slice[int]): seq[T]

stdout
Standard output is empty