Skip to content

Commit

Permalink
fix(structures): solved BUG071
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco authored and Francesco committed Dec 13, 2023
1 parent 7fcacee commit 38b3fa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/BUG/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def get_unique_elements(lst: list) -> list:
"""
BUG071: get_unique_elements should return a list of unique elements, not the same list.
"""
result = lst
temp = []
for element in lst:
if element not in temp:
temp.append (element)
result = temp
return result


Expand Down

0 comments on commit 38b3fa6

Please sign in to comment.