Set symmetric difference by 51b

-module(s).
-export([m/0]).
m()->g(lists:sort(string:tokens(io:get_chars('',999)," 
"))).
g([A,A|B])->g(B);g([A|B])->io:format(A++" "),g(B);g(_)->x.

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page