RosettaCodeData/Task/Reverse-a-string/Standard-ML/reverse-a-string.ml

4 lines
99 B
OCaml

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