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

Haskell, 3434 33 bytes

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

Try it online!Try it online!

Haskell, 34 bytes

n#x=take x$[1..]>>= \b->[b..b+n-1]

Try it online!

Haskell, 34 33 bytes

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

Try it online!

Source Link
nimi
  • 35.9k
  • 4
  • 34
  • 99

Haskell, 34 bytes

n#x=take x$[1..]>>= \b->[b..b+n-1]

Try it online!