/**
 * This function will delete elements from a list based on a given filter function.
 *
 * @param lst A list of elements.
 * @param filterFunc A function that takes an element as input and returns true or false.
 * @return The updated list after removing elements that satisfy the filter function.
 */
fun deleteFilteredItems(lst: List<Any>, filterFunc: (Any) -> Boolean): List<Any> {

    return lst.filterNot { filterFunc(it) }
}
/**
 * This function will delete elements from a list based on a given filter function.
 *
 * @param lst A list of elements.
 * @param filterFunc A function that takes an element as input and returns true or false.
 * @return The updated list after removing elements that satisfy the filter function.
 */
fun deleteFilteredItems(lst: List<Any>, filterFunc: (Any) -> Boolean): List<Any> {
/**
 * This function will delete elements from a list based on a given filter function.
 *
 * @param lst A list of elements.
 * @param filterFunc A function that takes an element as input and returns true or false.
 * @return The updated list after removing elements that satisfy the filter function.
 */
fun deleteFilteredItems(lst: List<Any>, filterFunc: (Any) -> Boolean): List<Any> {

    return lst.filterNot { filterFunc(it) }
}