/**
 * This function appends new elements to a list if they are not already present in the list.
 *
 * @param elements The original list of elements.
 * @param newElements The new elements to be appended to the original list.
 * @return The updated list with new elements appended if they are not already present.
 */
fun appendUniqueElements(elements: MutableList<Any>, newElements: List<Any>): List<Any> {

    for (elem in newElements) {
        if (elem !in elements) {
            elements.add(elem)
        }
    }
    return elements
}
/**
 * This function appends new elements to a list if they are not already present in the list.
 *
 * @param elements The original list of elements.
 * @param newElements The new elements to be appended to the original list.
 * @return The updated list with new elements appended if they are not already present.
 */
fun appendUniqueElements(elements: MutableList<Any>, newElements: List<Any>): List<Any> {
/**
 * This function appends new elements to a list if they are not already present in the list.
 *
 * @param elements The original list of elements.
 * @param newElements The new elements to be appended to the original list.
 * @return The updated list with new elements appended if they are not already present.
 */
fun appendUniqueElements(elements: MutableList<Any>, newElements: List<Any>): List<Any> {

    for (elem in newElements) {
        if (elem !in elements) {
            elements.add(elem)
        }
    }
    return elements
}