/**
 * This function creates a list with a given number of elements, all initialized to a specific value.
 *
 * @param numElements The number of elements in the list.
 * @param initialValue The value used to initialize each element.
 * @return A list with the specified number of elements, all initialized to the given value.
 */
fun createListWithInitialElements(numElements: Int, initialValue: Any): List<Any> {

    val result = mutableListOf<Any>()
    repeat(numElements) {
        result.add(initialValue)
    }
    return result
}
/**
 * This function creates a list with a given number of elements, all initialized to a specific value.
 *
 * @param numElements The number of elements in the list.
 * @param initialValue The value used to initialize each element.
 * @return A list with the specified number of elements, all initialized to the given value.
 */
fun createListWithInitialElements(numElements: Int, initialValue: Any): List<Any> {
/**
 * This function creates a list with a given number of elements, all initialized to a specific value.
 *
 * @param numElements The number of elements in the list.
 * @param initialValue The value used to initialize each element.
 * @return A list with the specified number of elements, all initialized to the given value.
 */
fun createListWithInitialElements(numElements: Int, initialValue: Any): List<Any> {

    val result = mutableListOf<Any>()
    repeat(numElements) {
        result.add(initialValue)
    }
    return result
}