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" ----> "CCoCodCode"
"name" ----> "nnanamname"
"harambe" ----> "hhaharharaharamharambharambe"
"sp aces?" ----> "sspsp sp asp acsp acesp acessp aces?"
"1234" ----> "1121231234"
"ss" ----> "sss"
This is code golf so shortest code wins + up votes for interesting uses of your respective language.
Good luck!
SStStrStriStrinStringStringsStringspStringsplStringsploStringsplodStringsplode
\$\endgroup\$