converting list to set code example
Example 1: java list to set
Set<Foo> foo = new HashSet<Foo>(myList);
Example 2: convert list to set python
names = ['Barry', 'Alice', 'Bob', 'Bob']
unique_names = set(names)
# Result:
# {'Alice', 'Barry', 'Bob'}