/**
 * This function takes a list of customer dictionaries and returns the total purchase amount made by all the customers.
 *
 * @param customers A list of customer dictionaries where each dictionary contains 'name' (string) and 'purchase' (float) keys.
 * @return A float representing the total purchase amount made by all the customers.
 */
fun getTotalPurchase(customers: List<Map<String, Any>>): Float {

    return customers.sumByDouble { it["purchase"] as Double }.toFloat()
}
/**
 * This function takes a list of customer dictionaries and returns the total purchase amount made by all the customers.
 *
 * @param customers A list of customer dictionaries where each dictionary contains 'name' (string) and 'purchase' (float) keys.
 * @return A float representing the total purchase amount made by all the customers.
 */
fun getTotalPurchase(customers: List<Map<String, Any>>): Float {
/**
 * This function takes a list of customer dictionaries and returns the total purchase amount made by all the customers.
 *
 * @param customers A list of customer dictionaries where each dictionary contains 'name' (string) and 'purchase' (float) keys.
 * @return A float representing the total purchase amount made by all the customers.
 */
fun getTotalPurchase(customers: List<Map<String, Any>>): Float {

    return customers.sumByDouble { it["purchase"] as Double }.toFloat()
}