Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2015 23:24
What would you like to do?
extension Features : CustomStringConvertible {
var description : String {
let strings = ["Alarm System", "CD Stereo",
"Chrome Wheels", "Pin Stripes", "Leather Interior",
"Undercoating", "Window Tint"]
var members = [String]()
for (flag, string) in strings.enumerate() where contains(Features(rawValue:1<<(flag + 1))) {
return members.description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment