View Problem

Display the unique items in a list

Display the unique items in a list, e.g. given ages = [18, 16, 17, 18, 16, 19, 14, 17, 19, 18], display the unique elements, i.e. with duplicates removed.
ExpandDiskEdit
erlang
Ages = sets:to_list(sets:from_list([18, 16, 17, 18, 16, 19, 14, 17, 19, 18])), io:format("~w~n", [Ages]).
DiskEdit
erlang
lists:usort([18, 16, 17, 18, 16, 19, 14, 17, 19, 18]).

Submit a new solution for erlang
There are 23 other solutions in additional languages (clojure, cpp, csharp, fantom ...)