/**
 * This function takes a list of dictionaries 'data' and a 'condition' to filter the dictionaries. It returns
 * a list of all the rows from 'data' that satisfy the given condition.
 *
 * @param data A list of dictionaries representing rows of data
 * @param condition An expression to filter the dictionaries
 * @return A list of dictionaries that satisfy the condition
 */
fun getMultipleRows(data: List<Map<String, Any>>, condition: (Map<String, Any>) -> Boolean): List<Map<String, Any>> {

    val rows = mutableListOf<Map<String, Any>>()

    // Iterate through each dictionary in the data
    for (row in data) {
        // Check if the condition is satisfied for the current dictionary
        if (condition(row)) {
            rows.add(row)
        }
    }

    return rows
}
/**
 * This function takes a list of dictionaries 'data' and a 'condition' to filter the dictionaries. It returns
 * a list of all the rows from 'data' that satisfy the given condition.
 *
 * @param data A list of dictionaries representing rows of data
 * @param condition An expression to filter the dictionaries
 * @return A list of dictionaries that satisfy the condition
 */
fun getMultipleRows(data: List<Map<String, Any>>, condition: (Map<String, Any>) -> Boolean): List<Map<String, Any>> {
/**
 * This function takes a list of dictionaries 'data' and a 'condition' to filter the dictionaries. It returns
 * a list of all the rows from 'data' that satisfy the given condition.
 *
 * @param data A list of dictionaries representing rows of data
 * @param condition An expression to filter the dictionaries
 * @return A list of dictionaries that satisfy the condition
 */
fun getMultipleRows(data: List<Map<String, Any>>, condition: (Map<String, Any>) -> Boolean): List<Map<String, Any>> {

    val rows = mutableListOf<Map<String, Any>>()

    // Iterate through each dictionary in the data
    for (row in data) {
        // Check if the condition is satisfied for the current dictionary
        if (condition(row)) {
            rows.add(row)
        }
    }

    return rows
}