3 Comments

  • Wow! Where did you find this ‘case let’ inside a ‘for …in’?
    I could not find anything like this in Swift docs…

    • It’s pretty much directly from the book in the Optional Pattern section. 🙂

      • That’s right, but it was not obvious that the “value binding pattern” would work in a “for … in”! Great trick!