[...]) for character in friendParty.members { performAttack(by: character, to: any(of: enemyParty.members)!) // } for character in enemyParty.members { performAttack(by: character, to: any(of: friendParty.members)!) // }
= Party(members: [...]) for character in friendParty.members { performAttack(by: character, to: &any(of: enemyParty.members)!) // } for character in enemyParty.members { performAttack(by: character, to: &any(of: friendParty.members)!) // }