import system

proc test(foo: seq[string], bar: int64) =
  for i in 0..<min(len(foo), bar):
    stdout.write(foo[i])
