Please enable JavaScript
To convert List to Set in Salesforce, add some values to List datatype and use addAll() to add it to Set datatype. Blog Post: https://www.infallibletechie.com/2012/07/convert-list-to-set-in-salesforce.html