A few days ago, I posted a Swift question (Using Switch with Arrays) and quickly got back a beautiful answer. Ever since, I have been trying to decompose in my mind just how this statement:
case let word where excludedWords.contains(word): is parsed and executed by Swift. It would seem to me that the 'let word...' portion is evaluated first, and for each occurrence of a word in excludedWords, Swift passes it back to the case for evaluation. I have not found any documentation, Apple or otherwise, that explains exactly how this works.
Can someone offer me a detailed explanation of just how this construct works in Swift?