RosettaCodeData/Task/Repeat-a-string/Standard-ML/repeat-a-string-3.ml
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

3 lines
68 B
Standard ML

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