Skip to content

Instantly share code, notes, and snippets.

@basp
Created February 12, 2019 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basp/4eaf9b7d497dfa0578dcb539d49df958 to your computer and use it in GitHub Desktop.
Save basp/4eaf9b7d497dfa0578dcb539d49df958 to your computer and use it in GitHub Desktop.
remove_duplication_nim
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