This notation is used to bind an associated enumeration value.
Take this for example:
let anOptionalInt: Int? = 15
switch (anOptionalInt) {
case .Some(let wrappedValue):
print(wrappedValue)
case .None:
print("the optional is nil")
}
This works because it Optionalis an enumeration. The first expression can be written as:
let anOptionalInt: Optional<Int> = Optional.Some(15)
: .Some .None. .Some , Wrapped, .None .
, Optional.None nil.