RosettaCodeData/Task/Repeat-a-string/Standard-ML/repeat-a-string-3.ml
2023-07-01 13:44:08 -04:00

3 lines
68 B
Standard ML

fun char_repeat (c, n) =
implode (List.tabulate (n, fn _ => c))
;