/**
 * Given a tuple and a boolean condition, return a new tuple containing only the elements that satisfy the condition.
 *
 * @param tup The input tuple.
 * @param condition The boolean condition to filter the elements.
 * @return The new tuple with filtered elements.
 */
fun filterConditional(tup: List<Any>, condition: Boolean): List<Any> {

    // Check if each element in the tuple satisfies the condition and create a new list
    val newTuple = tup.filter { element -> element == condition }
    return newTuple
}
/**
 * Given a tuple and a boolean condition, return a new tuple containing only the elements that satisfy the condition.
 *
 * @param tup The input tuple.
 * @param condition The boolean condition to filter the elements.
 * @return The new tuple with filtered elements.
 */
fun filterConditional(tup: List<Any>, condition: Boolean): List<Any> {
/**
 * Given a tuple and a boolean condition, return a new tuple containing only the elements that satisfy the condition.
 *
 * @param tup The input tuple.
 * @param condition The boolean condition to filter the elements.
 * @return The new tuple with filtered elements.
 */
fun filterConditional(tup: List<Any>, condition: Boolean): List<Any> {

    // Check if each element in the tuple satisfies the condition and create a new list
    val newTuple = tup.filter { element -> element == condition }
    return newTuple
}