Skip to main content
made it so it only takes 1 input
Source Link
JoshM
  • 507
  • 5
  • 12

V, 14 bytes

é,"aPÀñDÀpys0] 

Try it online!

input

é, # write comma "aP # paste register A (input) Àñ # loop À (number in register A) times D # cut to end of line Àp # paste À times ysB] # surround everything before comma in square brackets 

V, 14 bytes

é,"aPÀñDÀpys0] 

Try it online!

V, 14 bytes

é,"aPÀñDÀpys0] 

Try it online!

input

é, # write comma "aP # paste register A (input) Àñ # loop À (number in register A) times D # cut to end of line Àp # paste À times ysB] # surround everything before comma in square brackets 
made it so it only takes 1 input
Source Link
JoshM
  • 507
  • 5
  • 12

V, 914 bytes

ÀñDÀpysB]é,"aPÀñDÀpys0] 

Try it online!Try it online!

Àñ # loop À times D # cut to end of line Àp # paste À times ysB] # surround everything before comma in square brackets 

V, 9 bytes

ÀñDÀpysB] 

Try it online!

Àñ # loop À times D # cut to end of line Àp # paste À times ysB] # surround everything before comma in square brackets 

V, 14 bytes

é,"aPÀñDÀpys0] 

Try it online!

shaved one character off and added explanation
Source Link
JoshM
  • 507
  • 5
  • 12

V, 109 bytes

ÀñDÀpysB]ñÀñDÀpysB] 

Try it online!Try it online!

Àñ # loop À times D # cut to end of line Àp # paste À times ysB] # surround everything before comma in square brackets 

V, 10 bytes

ÀñDÀpysB]ñ 

Try it online!

V, 9 bytes

ÀñDÀpysB] 

Try it online!

Àñ # loop À times D # cut to end of line Àp # paste À times ysB] # surround everything before comma in square brackets 
Source Link
JoshM
  • 507
  • 5
  • 12
Loading