Summer '23 Iterable Interface using Set Type

mail@pastecode.io avatar
unknown
apex
7 months ago
157 B
3
Indexable
Never
Set<String> components = new Set<String>{'AI', 'Data', 'CRM'};
String dataCloud = 'Data Cloud = ' + String.join(components, ' + ');

System.debug(dataCloud);