RosettaCodeData/Task/Repeat-a-string/Oz/repeat-a-string.oz
2023-07-01 13:44:08 -04:00

10 lines
159 B
Text

declare
fun {Repeat Xs N}
if N > 0 then
{Append Xs {Repeat Xs N-1}}
else
nil
end
end
in
{System.showInfo {Repeat "Ha" 5}}