RosettaCodeData/Task/Reverse-a-string/Standard-ML/reverse-a-string.ml
2023-07-01 13:44:08 -04:00

3 lines
99 B
OCaml

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