/**
 * This function takes a list of ingredients and determines whether each ingredient needs to be cooked or not.
 * It uses a basic loop syntax and the syntax of the ternary operator to make the decision.
 */
fun cookIngredients(ingredients: List<String>) {

    for (ingredient in ingredients) {
        val isCooked = ingredient in listOf("potato", "rice", "carrot")
        println("$ingredient needs to be cooked: $isCooked")
    }
}

// Sample Usage
/**
 * This function takes a list of ingredients and determines whether each ingredient needs to be cooked or not.
 * It uses a basic loop syntax and the syntax of the ternary operator to make the decision.
 */
fun cookIngredients(ingredients: List<String>) {
/**
 * This function takes a list of ingredients and determines whether each ingredient needs to be cooked or not.
 * It uses a basic loop syntax and the syntax of the ternary operator to make the decision.
 */
fun cookIngredients(ingredients: List<String>) {

    for (ingredient in ingredients) {
        val isCooked = ingredient in listOf("potato", "rice", "carrot")
        println("$ingredient needs to be cooked: $isCooked")
    }
}

// Sample Usage