Intermediate Swift
Q52 / 100

What is the Hashable protocol?

Correct! Well done.

Incorrect.

The correct answer is B) A protocol requiring a hash(into:) method so values can be used as Set members or Dictionary keys

B

Correct Answer

A protocol requiring a hash(into:) method so values can be used as Set members or Dictionary keys

Explanation

Types conforming to Hashable (which implies Equatable) can be stored in Set and used as Dictionary keys. Structs synthesize conformance if all stored properties are Hashable.

Progress
52/100