#Japt, 12 bytes
Japt, 12 bytes
Takes input as a string, outputs an array of strings.
Ë+pE
¬£h°YçX
##Explanation :Implicit input of string U Ë :Map each character D at 0-based index E pE : Repeat D E times + : Append to D \n :Reassign to U ¬ :Split to character array £ :Map each element X at 0-based index Y °Y : Increment Y çX : Repeat X Y times h : Replace the first Y characters in U with that
Explanation
:Implicit input of string U
Ë :Map each character D at 0-based index E
pE : Repeat D E times
+ : Append to D
\n :Reassign to U
¬ :Split to character array
£ :Map each element X at 0-based index Y
°Y : Increment Y
çX : Repeat X Y times
h : Replace the first Y characters in U with that