supotuco (29) [Avatar] Offline
Q: What are the number possible variations of Bagel?

enum Topping {
    case creamCheese
    case peanutButter
    case jam 

enum BagelType {
    case cinnamonRaisin
    case glutenFree
    case oatMeal
    case blueberry

struct Bagel {
    let topping: Topping
    let type: BagelType

The answer is 12 since structs are product types and 3 * 4 = 12.

Tjeerd in 't Veen (12) [Avatar] Offline
Hi, you are correct. Thank you for finding this, I will fix this immediately smilie
Rihana Lee (1) [Avatar] Offline