/**
 * This function takes a list of elements and appends new elements to it.
 *
 * @param elements The original list of elements
 * @param newElements A list of new elements to be appended
 * @return The updated list with the new elements appended
 */
fun appendToList(elements: MutableList<Any>, newElements: List<Any>): MutableList<Any> {

    // Append new elements to the original list
    elements.addAll(newElements)
    
    return elements
}
/**
 * This function takes a list of elements and appends new elements to it.
 *
 * @param elements The original list of elements
 * @param newElements A list of new elements to be appended
 * @return The updated list with the new elements appended
 */
fun appendToList(elements: MutableList<Any>, newElements: List<Any>): MutableList<Any> {
/**
 * This function takes a list of elements and appends new elements to it.
 *
 * @param elements The original list of elements
 * @param newElements A list of new elements to be appended
 * @return The updated list with the new elements appended
 */
fun appendToList(elements: MutableList<Any>, newElements: List<Any>): MutableList<Any> {

    // Append new elements to the original list
    elements.addAll(newElements)
    
    return elements
}