Strings In Depth6 / 14
Up next

Repeat a string

print(string.rep("ab", 3))
-- a third argument goes between copies
print(string.rep("x", 3, "-"))
What you're solving

string.rep with an optional separator