/**
 * Given a list 'items" and a list of 'new_elements`, this function appends
 * only the unique elements from 'new_elements" to 'items`.
 *
 * @param items The original list of elements.
 * @param new_elements The list of new elements to append.
 * @return The updated list 'items" with only the unique elements.
 */
fun appendUniqueElements(items: MutableList<Any>, newElements: List<Any>): MutableList<Any> {

    for (element in newElements) {
        if (element !in items) {  // Checks if element is not already in items
            items.add(element)  // Appends the unique element to items
        }
    }

    return items
}
/**
 * Given a list 'items" and a list of 'new_elements`, this function appends
 * only the unique elements from 'new_elements" to 'items`.
 *
 * @param items The original list of elements.
 * @param new_elements The list of new elements to append.
 * @return The updated list 'items" with only the unique elements.
 */
fun appendUniqueElements(items: MutableList<Any>, newElements: List<Any>): MutableList<Any> {
/**
 * Given a list 'items" and a list of 'new_elements`, this function appends
 * only the unique elements from 'new_elements" to 'items`.
 *
 * @param items The original list of elements.
 * @param new_elements The list of new elements to append.
 * @return The updated list 'items" with only the unique elements.
 */
fun appendUniqueElements(items: MutableList<Any>, newElements: List<Any>): MutableList<Any> {

    for (element in newElements) {
        if (element !in items) {  // Checks if element is not already in items
            items.add(element)  // Appends the unique element to items
        }
    }

    return items
}