import strutils
# Repeat a char.
echo repeat('a', 5) # -> "aaaaa".
# Repeat a string.
echo repeat("ha", 5) # -> "hahahahaha".