/**
 * Append new elements to a list of design elements using set comprehension.
 *
 * @param designElements A list of design elements.
 * @param newElements A set of new elements to be added.
 * @return A list with all the design elements, including the new ones, in the same order.
 */
fun appendDesignElements(designElements: MutableList<String>, newElements: Set<String>): List<String> {

    // Use set comprehension to add new elements to designElements list
    designElements.addAll(newElements.filter { it !in designElements })
    return designElements
}
/**
 * Append new elements to a list of design elements using set comprehension.
 *
 * @param designElements A list of design elements.
 * @param newElements A set of new elements to be added.
 * @return A list with all the design elements, including the new ones, in the same order.
 */
fun appendDesignElements(designElements: MutableList<String>, newElements: Set<String>): List<String> {
/**
 * Append new elements to a list of design elements using set comprehension.
 *
 * @param designElements A list of design elements.
 * @param newElements A set of new elements to be added.
 * @return A list with all the design elements, including the new ones, in the same order.
 */
fun appendDesignElements(designElements: MutableList<String>, newElements: Set<String>): List<String> {

    // Use set comprehension to add new elements to designElements list
    designElements.addAll(newElements.filter { it !in designElements })
    return designElements
}