[swift-evolution] List of all Enum values (for simple enums)

Brent Royal-Gordon brent at architechies.com
Wed Dec 9 06:15:58 CST 2015

> 	protocol Enumerable {
> 		typealias Enumeration: SequenceType where Generator.Element == Self
> 		var allValues: Enumeration
> 	}

Er, that should have been `static var`, of course. That was bright of me.

Brent Royal-Gordon

More information about the swift-evolution mailing list