Stringsplode the String! The challenge is relatively simple, but will hopefully lead to some wonderfully creative answers. The task is to take a string as an input (via command line, function parameter etc.) and output/return a stringsploded version of it.

A stringsploded version of a string is its first letter followed by its first 2 letters, followed by its first 3 letters,... until you finally output the complete word.

You are guaranteed that the input will consist of printable ASCII characters and that the input will all be on one line (no new line characters).

Here are examples to clarify what stringsplosions are:

Input                 Output
==================================================================
"Code"       ----&gt;   "CCoCodCode"
"name"       ----&gt;   "nnanamname"
"harambe"    ----&gt;   "hhaharharaharamharambharambe"
"sp aces?"   ----&gt;   "sspsp sp asp acsp acesp acessp aces?"
"1234"       ----&gt;   "1121231234"
"ss"         ----&gt;   "sss"


This is code golf so shortest code wins + up votes for interesting uses of your respective language.

Good luck!
gs2, 1 byte

x


gs2 takes input from STDIN, and pushes it to the stack as a string.
x is the prefixes built-in, returning a list of all prefixes of the argument, in ascending-length order.
The resulting list of strings is implicitly printed one-by-one, without a delimiter, when the program terminates.