ttimeinfo.nim 261 B

12345678910111213141516
  1. # bug #2073
  2. import sequtils
  3. import times
  4. # 1
  5. proc f(n: int): TimeInfo =
  6. TimeInfo(year: n, month: mJan, monthday: 1)
  7. echo toSeq(2000 || 2015).map(f)
  8. # 2
  9. echo toSeq(2000 || 2015).map(proc (n: int): TimeInfo =
  10. TimeInfo(year: n, month: mJan, monthday: 1)
  11. )