# [Zsh], 38 bytes

<!-- language-all: lang-sh -->

 for i (${(s::)@});repeat ++n printf $i

[Try it online!][TIO-ldh8v5gv]

[Zsh]: https://www.zsh.org/
[TIO-ldh8v5gv]: https://tio.run/##DcUrEoAgFAXQ7ipuMMC4Ay1q1WZwjH4eA@XBAAZlXDtSznmDzkrIlJX1MBB1EqFtZf/JzpOjPaJpGM4bjgq1yXRq290cKIK/qlJY9VNcpsdRebbHsZUH7HxhzD8 "Zsh – Try It Online"
-8 bytes thanks to roblogic