Skip to content

Instantly share code, notes, and snippets.

@SlaunchaMan
Created November 30, 2015 03:27
Show Gist options
  • Save SlaunchaMan/e1677c50a88874512026 to your computer and use it in GitHub Desktop.
Save SlaunchaMan/e1677c50a88874512026 to your computer and use it in GitHub Desktop.
Initializing a Set without an array
extension Set {
init(items: Element...) {
self.init(items)
}
}
// From this: Set([object, object, object])
// To this: Set(items: object, object, object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment