/**
 * Appends all elements from the list to the end of the tuple and returns the new tuple.
 *
 * @param t The initial tuple.
 * @param elements The list of elements to append.
 * @return The new tuple after appending the elements.
 */
fun appendToTuple(t: List<Any>, elements: List<Any>): List<Any> {

    // Convert the tuple to a mutable list
    val tList = t.toMutableList()

    // Add all elements from the list
    tList.addAll(elements)

    return tList
}
/**
 * Appends all elements from the list to the end of the tuple and returns the new tuple.
 *
 * @param t The initial tuple.
 * @param elements The list of elements to append.
 * @return The new tuple after appending the elements.
 */
fun appendToTuple(t: List<Any>, elements: List<Any>): List<Any> {
/**
 * Appends all elements from the list to the end of the tuple and returns the new tuple.
 *
 * @param t The initial tuple.
 * @param elements The list of elements to append.
 * @return The new tuple after appending the elements.
 */
fun appendToTuple(t: List<Any>, elements: List<Any>): List<Any> {

    // Convert the tuple to a mutable list
    val tList = t.toMutableList()

    // Add all elements from the list
    tList.addAll(elements)

    return tList
}