/**
 * The removeSickAnimals function takes in two arguments:
 * - animals: a list of dictionaries representing the animals in a veterinarian's office
 * - sicknesses: a list of strings representing the names of animals that are sick
 *
 * The function removes the sick animals from the list of animals.
 *
 * The function uses a filter function to create a new list without the sick animals.
 */
fun removeSickAnimals(animals: List<Map<String, String>>, sicknesses: List<String>): List<Map<String, String>> {

    return animals.filter { animal -> animal["name"] !in sicknesses }
}
/**
 * The removeSickAnimals function takes in two arguments:
 * - animals: a list of dictionaries representing the animals in a veterinarian's office
 * - sicknesses: a list of strings representing the names of animals that are sick
 *
 * The function removes the sick animals from the list of animals.
 *
 * The function uses a filter function to create a new list without the sick animals.
 */
fun removeSickAnimals(animals: List<Map<String, String>>, sicknesses: List<String>): List<Map<String, String>> {
/**
 * The removeSickAnimals function takes in two arguments:
 * - animals: a list of dictionaries representing the animals in a veterinarian's office
 * - sicknesses: a list of strings representing the names of animals that are sick
 *
 * The function removes the sick animals from the list of animals.
 *
 * The function uses a filter function to create a new list without the sick animals.
 */
fun removeSickAnimals(animals: List<Map<String, String>>, sicknesses: List<String>): List<Map<String, String>> {

    return animals.filter { animal -> animal["name"] !in sicknesses }
}