Message 1 of 2
How to remove duplicate elements in an array? like "list(set(some_array))" in python.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to remove duplicate elements in an array?
Like this python code
t = [1, 2, 3, 1, 2, 3, 4]
list(set(t))
# [1, 2, 3, 4]