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

4 lines
99 B
OCaml
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
val str_reverse = implode o rev o explode;
val string = "asdf";
val reversed = str_reverse string;