Advertisement
31ph4n70m

reverse_string.erl

Nov 19th, 2019
1,776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.21 KB | None | 0 0
  1. % Erlang solution to codeabbey challenge 30
  2. -module(main).
  3. -export([main/1]).
  4.  
  5. main([_]) ->
  6.     S = "on fare supper off shelf jeopardy about cactus",
  7.     T = lists:reverse(S),
  8.     io:format(T),
  9. init:stop() .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement