- "max(score([('Frosting', f), ('Butterscotch', b), ('Candy', c), ('Sugar', capacity-(f+b+c))], ingredients) \n",
- " for f, b, c in filter(lambda t: calories([('Frosting', t[0]), ('Butterscotch', t[1]), \n",
- " ('Candy', t[2]), ('Sugar', capacity-sum(t))], ingredients) == 500,\n",
+ "max(score(recipe(t, capacity), ingredients) \n",
+ " for t in filter(lambda t: calories(recipe(t, capacity), ingredients) == 500,\n",