Skip to main content
added 48 characters in body
Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, 4848 47 bytes

Edit: -1 byte thanks to Giuseppe

function(t,c)repeat( cat(rep(c(t,''),c),sep='
'))

Try it online!Try it online!

Function with arguments specifying text t and vector c of counts of text & blank lines.

R, 48 bytes

function(t,c)repeat(cat(rep(c(t,''),c),sep='
'))

Try it online!

Function with arguments specifying text t and vector c of counts of text & blank lines.

R, 48 47 bytes

Edit: -1 byte thanks to Giuseppe

function(t,c)repeat cat(rep(c(t,''),c),sep='
')

Try it online!

Function with arguments specifying text t and vector c of counts of text & blank lines.

Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, 48 bytes

function(t,c)repeat(cat(rep(c(t,''),c),sep='
'))

Try it online!

Function with arguments specifying text t and vector c of counts of text & blank lines.