/**
 * Given two tuples t1 and t2, concatenate them n times to form a new tuple.
 *
 * @param t1 The first tuple.
 * @param t2 The second tuple.
 * @param n The number of times to concatenate the tuples.
 * @return The new tuple obtained by concatenating t1 and t2 n times.
 */
fun concatenateTuples(t1: List<Any>, t2: List<Any>, n: Int): List<Any> {

    var result = emptyList<Any>()

    repeat(n) {
        result += t1 + t2
    }

    return result
}
/**
 * Given two tuples t1 and t2, concatenate them n times to form a new tuple.
 *
 * @param t1 The first tuple.
 * @param t2 The second tuple.
 * @param n The number of times to concatenate the tuples.
 * @return The new tuple obtained by concatenating t1 and t2 n times.
 */
fun concatenateTuples(t1: List<Any>, t2: List<Any>, n: Int): List<Any> {
/**
 * Given two tuples t1 and t2, concatenate them n times to form a new tuple.
 *
 * @param t1 The first tuple.
 * @param t2 The second tuple.
 * @param n The number of times to concatenate the tuples.
 * @return The new tuple obtained by concatenating t1 and t2 n times.
 */
fun concatenateTuples(t1: List<Any>, t2: List<Any>, n: Int): List<Any> {

    var result = emptyList<Any>()

    repeat(n) {
        result += t1 + t2
    }

    return result
}