isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Feature-request: Add a function that duplicates a sequence #237

Closed Mr-Xcoder closed 7 years ago

Mr-Xcoder commented 7 years ago

If I want to duplicate a String (i.e. append a copy of itself to it, e.g.: ABCD -> ABCDABCD), I have to write *2"ABCD. I think this should be a one-byte built-in, like y is to *2<num>. That would be helpful, especially in tasks involving String manipulation.

isaacg1 commented 7 years ago

What one character operation do you think this is more useful that, which we should remove?