Intermediate
APEX
Deduplicate a List
Sets in Apex automatically drop duplicates — the cheapest way to deduplicate a list.
Given a List<String> variable named items that may contain duplicates, write one line of Apex that creates a Set<String> named uniqueItems containing only the distinct values.
Log in
to submit a solution.