Skip to main content
added 383 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt, 7 bytes

ÈsY}f+U

Try it here

ÈsY}f+U     :Implicit input of string U
È           :Function taking a string and a 0-based iteration index Y as arguments
 sY         :  Slice the string from the Yth character
   }        :End function
    f       :Get the first string that returns falsey (empty string)
     +U     :  Where each string is U appended to the current iteration index

Japt, 7 bytes

ÈsY}f+U

Try it here

Japt, 7 bytes

ÈsY}f+U

Try it here

ÈsY}f+U     :Implicit input of string U
È           :Function taking a string and a 0-based iteration index Y as arguments
 sY         :  Slice the string from the Yth character
   }        :End function
    f       :Get the first string that returns falsey (empty string)
     +U     :  Where each string is U appended to the current iteration index
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt, 7 bytes

ÈsY}f+U

Try it here