Forums
Learn
Careers
Store
About
SUBSCRIBE
NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>
Question 1/12: This will create a set with two items – true or false?
Hint: Sets are similar to arrays, except they can't contain duplicate items and are unordered. Click to show.
var readings = Set([true, false, true, true])
Correct! Sets must contain unique items, so the second and subsequent instances of true will be discarded.
true
Oops – that's not correct. Sets must contain unique items, so the second and subsequent instances of true will be discarded.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.