/**
 * The function takes a condition and a list of elements.
 * It modifies the elements in the list based on the condition using list comprehensions.
 *
 * @param condition The condition to be evaluated.
 * @param elements The list of elements to be modified.
 * @return The modified list of elements.
 */
fun applyModifications(condition: Boolean, elements: List<String>): List<String> {

    val modifiedElements = elements.map { if (condition) it else it.toLowerCase() }
    return modifiedElements
}

// Exercise:
/**
 * The function takes a condition and a list of elements.
 * It modifies the elements in the list based on the condition using list comprehensions.
 *
 * @param condition The condition to be evaluated.
 * @param elements The list of elements to be modified.
 * @return The modified list of elements.
 */
fun applyModifications(condition: Boolean, elements: List<String>): List<String> {
/**
 * The function takes a condition and a list of elements.
 * It modifies the elements in the list based on the condition using list comprehensions.
 *
 * @param condition The condition to be evaluated.
 * @param elements The list of elements to be modified.
 * @return The modified list of elements.
 */
fun applyModifications(condition: Boolean, elements: List<String>): List<String> {

    val modifiedElements = elements.map { if (condition) it else it.toLowerCase() }
    return modifiedElements
}

// Exercise: