Skip to main content
2 of 2
added 8 characters in body
nimi
  • 35.9k
  • 4
  • 34
  • 99

Haskell, 34 33 bytes

n#x=take x$do j<-[1..];[j..j+n-1]

Try it online!

nimi
  • 35.9k
  • 4
  • 34
  • 99