I have the following struct defined.
struct Person { var firstName :String var lastName :String var active :Bool }
I have cre
When using the brackets for arguments so that var works, you have to put the return type as well:
var
let inActionPersons = persons.map { (var p) -> Person in p.active = false return p }