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

3 lines
99 B
OCaml

val str_reverse = implode o rev o explode;
val string = "asdf";
val reversed = str_reverse string;