 //  Copyright (c) 2014 Rob Rix. All rights reserved.
 
 /// A set of unique elements.
-public struct Set<Element : Hashable> {
-	public init<S : SequenceType where S.Generator.Element == Element>(_ sequence: S) {
+public struct Set<Element: Hashable> {
+	public init<S: SequenceType where S.Generator.Element == Element>(_ sequence: S) {
 		self.values = [:]
 		extend(sequence)
 	}



/// SequenceType conformance.
extension Set : SequenceType {
	public func generate() -> GeneratorOf<Element> {
		return GeneratorOf(values.keys.generate())
	}

}

/// ArrayLiteralConvertible conformance.
extension Set: ArrayLiteralConvertible {
	public init(arrayLiteral elements: Element...) {
		self.init(elements)
	}
