Swift syntax 'case let' in for loop is confusing
<p>If the goal is to have 'result' represent an object in the 'results' array, why not drop <code>case let</code> in the following and just have 'for result in' instead ? I don't understand why <code>case let</code> is required here.</p>

<pre><code>if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
    for case let result in json["results"] {
        if let restaurant = Restaurant(json: result) {
            restaurants.append(restaurant)
        }
    }
}
</code></pre>

<p><strong>JSON</strong></p>

<pre><code>{
    "query": "sandwich",
    "results_count": 12,
    "page": 1,
    "results": [
        {
            "name": "Caffè Macs",
            "coordinates": {
                "lat": 37.330576,
                "lng": -122.029739
            },
            "meals": ["breakfast", "lunch", "dinner"]
        },
        ...
    ]
}
</code></pre>

<p>REF: <a href="https://developer.apple.com/swift/blog/" rel="nofollow">https://developer.apple.com/swift/blog/</a></p>