def score_recipes(recipes, ingredients, scorer):
    """Score recipies based on ingredients with scorer function."""
    ingredients_order = [*ingredients]
    return [(scorer(recipe, ingredients),
             recipe,
             ingredients_order)
            for recipe in recipes]