Created
February 25, 2017 12:31
-
-
Save maruks/14b0ef10224e7f22d40c04c8fea731ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nub([]) -> | |
[]; | |
nub([X|Xs]) -> | |
[X | nub (lists:filter(fun (E) -> E =/= X end, Xs)]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment