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

3 lines
69 B
Standard ML

fun string_repeat (s, n) =
concat (List.tabulate (n, fn _ => s))
;