If you want to make a list of words unique... this example will take "words" on the command line and print out the unique set of words, in order.
https://onlinegdb.com/HyJkq5Z3B