Data trees

Tell me how to make it so that it automatically removes a duplicate value?

Create Set?