Swift and the Legacy of Functional Programming
I&#x27;m curious, does every else find this<p><pre><code>    let persons = names
        .map(Person.init)
        .filter { $0.isValid }
</code></pre>
easier to read than this?<p><pre><code>    var persons: [Person] = []
    for name in names {
        let person = Person(name: name)
        if person.isValid {
            persons.append(person)
        }
    }
</code></pre>
I understand and appreciate the value of compact code, but I find the first one harder to read. A lot of inferred&#x2F;token based coding is harder for me to mentally parse.