Beyond Scripting in Swift: Sets, Lies, and Videotape A simple and elegant way to eliminate duplicates from an array of strings comes and goes as Swift 3.1 takes charge.