Created
February 12, 2019 21:06
-
-
Save basp/4eaf9b7d497dfa0578dcb539d49df958 to your computer and use it in GitHub Desktop.
remove_duplication_nim
This file contains 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
proc remove_duplication_nim(n: seq[int]): seq[int] | |
for t in n: | |
if result.contains(t): | |
continue | |
result.append(t) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment