erlang Reversed = string:join(lists:reverse(string:tokens("This is the end, my only friend!", " ")), " "),
-module(revwords).
-export([start/0]).
start() ->
Reversed = string:join(lists:reverse(string:tokens("This is the end, my only friend!", " ")), " "),
io:format("~s~n", [Reversed]).