/**
 * This exercise aims to test your understanding of copying lists and creating tuples.
 * You need to write a function that takes a list as input, copies it twice, and combines both copies into a tuple.
 * Your task is to complete the code by satisfying the following requirements:
 * - The original list should remain unchanged.
 * - The two copies of the list should be created without modifying the original list.
 * - The two copies should be concatenated into a single tuple.
 * - The resulting tuple should be returned as the output of the function.
 *
 * @param electricianList A list of elements.
 * @return A tuple containing the two copies of the list.
 */
fun copyAndCreateTuple(electricianList: List<Any>): Pair<List<Any>, List<Any>> {

    // Make a copy of the original list using the toList() function
    val copy1 = electricianList.toList()

    // Make a deep copy of the original list using map function
    val copy2 = electricianList.map { it }

    // Combine the two copies into a single tuple
    return Pair(copy1, copy2)
}
/**
 * This exercise aims to test your understanding of copying lists and creating tuples.
 * You need to write a function that takes a list as input, copies it twice, and combines both copies into a tuple.
 * Your task is to complete the code by satisfying the following requirements:
 * - The original list should remain unchanged.
 * - The two copies of the list should be created without modifying the original list.
 * - The two copies should be concatenated into a single tuple.
 * - The resulting tuple should be returned as the output of the function.
 *
 * @param electricianList A list of elements.
 * @return A tuple containing the two copies of the list.
 */
fun copyAndCreateTuple(electricianList: List<Any>): Pair<List<Any>, List<Any>> {
/**
 * This exercise aims to test your understanding of copying lists and creating tuples.
 * You need to write a function that takes a list as input, copies it twice, and combines both copies into a tuple.
 * Your task is to complete the code by satisfying the following requirements:
 * - The original list should remain unchanged.
 * - The two copies of the list should be created without modifying the original list.
 * - The two copies should be concatenated into a single tuple.
 * - The resulting tuple should be returned as the output of the function.
 *
 * @param electricianList A list of elements.
 * @return A tuple containing the two copies of the list.
 */
fun copyAndCreateTuple(electricianList: List<Any>): Pair<List<Any>, List<Any>> {

    // Make a copy of the original list using the toList() function
    val copy1 = electricianList.toList()

    // Make a deep copy of the original list using map function
    val copy2 = electricianList.map { it }

    // Combine the two copies into a single tuple
    return Pair(copy1, copy2)
}