/**
 * This exercise requires the firefighter to remove certain elements from set1 based on a condition,
 * using an alternative to the ternary operator.
 *
 * The firefighter needs to implement the code to remove elements from set1 if the condition is true,
 * and use an advanced Kotlin construct instead of the ternary operator for doing so.
 */
fun removeElementsFromSet(set1: Set<Int>, set2: Set<Int>, condition: Boolean): Set<Int> {

    // Use an alternative to the ternary operator to remove elements from set1 based on the given condition
    val updatedSet1 = if (condition) set1 - set2 else set1

    return updatedSet1
}
/**
 * This exercise requires the firefighter to remove certain elements from set1 based on a condition,
 * using an alternative to the ternary operator.
 *
 * The firefighter needs to implement the code to remove elements from set1 if the condition is true,
 * and use an advanced Kotlin construct instead of the ternary operator for doing so.
 */
fun removeElementsFromSet(set1: Set<Int>, set2: Set<Int>, condition: Boolean): Set<Int> {
/**
 * This exercise requires the firefighter to remove certain elements from set1 based on a condition,
 * using an alternative to the ternary operator.
 *
 * The firefighter needs to implement the code to remove elements from set1 if the condition is true,
 * and use an advanced Kotlin construct instead of the ternary operator for doing so.
 */
fun removeElementsFromSet(set1: Set<Int>, set2: Set<Int>, condition: Boolean): Set<Int> {

    // Use an alternative to the ternary operator to remove elements from set1 based on the given condition
    val updatedSet1 = if (condition) set1 - set2 else set1

    return updatedSet1
}