/**
 * Appends new elements to the given array.
 *
 * @param newElements a list of new elements to be appended to the array
 * @param array the target array to append the new elements to
 * @return the modified array with the new elements appended at the end
 */
fun appendElements(newElements: List<Any>, array: MutableList<Any>): MutableList<Any> {

    // Iterate through the new elements
    for (element in newElements) {
        // Append the element to the array
        array.add(element)
    }
    
    return array
}
/**
 * Appends new elements to the given array.
 *
 * @param newElements a list of new elements to be appended to the array
 * @param array the target array to append the new elements to
 * @return the modified array with the new elements appended at the end
 */
fun appendElements(newElements: List<Any>, array: MutableList<Any>): MutableList<Any> {
/**
 * Appends new elements to the given array.
 *
 * @param newElements a list of new elements to be appended to the array
 * @param array the target array to append the new elements to
 * @return the modified array with the new elements appended at the end
 */
fun appendElements(newElements: List<Any>, array: MutableList<Any>): MutableList<Any> {

    // Iterate through the new elements
    for (element in newElements) {
        // Append the element to the array
        array.add(element)
    }
    
    return array
}