/**
 * This function takes a list of customer dictionaries and returns a new list with only the dictionaries that match the target age.
 *
 * @param customers A list of customer dictionaries where each dictionary contains 'name' (string) and 'age' (integer) keys.
 * @param targetAge An integer representing the age criterion for filtering the customers.
 * @return A list of customer dictionaries that have the same age as the targetAge.
 */
fun filterCustomers(customers: List<Map<String, Any>>, targetAge: Int): List<Map<String, Any>> {

    return customers.filter { it["age"] == targetAge }
}
/**
 * This function takes a list of customer dictionaries and returns a new list with only the dictionaries that match the target age.
 *
 * @param customers A list of customer dictionaries where each dictionary contains 'name' (string) and 'age' (integer) keys.
 * @param targetAge An integer representing the age criterion for filtering the customers.
 * @return A list of customer dictionaries that have the same age as the targetAge.
 */
fun filterCustomers(customers: List<Map<String, Any>>, targetAge: Int): List<Map<String, Any>> {
/**
 * This function takes a list of customer dictionaries and returns a new list with only the dictionaries that match the target age.
 *
 * @param customers A list of customer dictionaries where each dictionary contains 'name' (string) and 'age' (integer) keys.
 * @param targetAge An integer representing the age criterion for filtering the customers.
 * @return A list of customer dictionaries that have the same age as the targetAge.
 */
fun filterCustomers(customers: List<Map<String, Any>>, targetAge: Int): List<Map<String, Any>> {

    return customers.filter { it["age"] == targetAge }
}