/**
 * Given a sequence and a list of elements, append the elements to the sequence and return the updated sequence.
 *
 * @param sequence The initial sequence.
 * @param elements The list of elements to append.
 * @return The updated sequence with the appended elements.
 */
fun appendingElements(sequence: MutableList<Any>, elements: List<Any>): MutableList<Any> {

    // Iterate over the elements and append them to the sequence
    elements.forEach { element -> sequence.add(element) }
    return sequence
}
/**
 * Given a sequence and a list of elements, append the elements to the sequence and return the updated sequence.
 *
 * @param sequence The initial sequence.
 * @param elements The list of elements to append.
 * @return The updated sequence with the appended elements.
 */
fun appendingElements(sequence: MutableList<Any>, elements: List<Any>): MutableList<Any> {
/**
 * Given a sequence and a list of elements, append the elements to the sequence and return the updated sequence.
 *
 * @param sequence The initial sequence.
 * @param elements The list of elements to append.
 * @return The updated sequence with the appended elements.
 */
fun appendingElements(sequence: MutableList<Any>, elements: List<Any>): MutableList<Any> {

    // Iterate over the elements and append them to the sequence
    elements.forEach { element -> sequence.add(element) }
    return sequence
}