Swift - Collections
The following Swift code is intended to find the union of two sets
setX and setY. What is the error?let setX: Set= ["apple", "banana"] let setY: Set = ["banana", "cherry"] let combined = setX.union setY print(combined)
