basic switch statement in swift
func decoder(input: Character) -> Int { switch input { case "b", "c", "d": return 4 case "f", "g": return 67 default: return 3 } }