/**
 * This function takes a list as input and converts it to a tuple.
 *
 * @param listData The list to be converted.
 * @return The tuple representation of the given list.
 */
fun convertListToTuple(listData: List<Any>): Pair<Any, Any> {

    // Check if the input is a list
    if (listData !is List<*>) {
        return Pair("Input must be a list!", "")
    }

    // Convert list to tuple
    val tupleData = listData.toTypedArray()

    return Pair(tupleData[0], tupleData[1])
}
/**
 * This function takes a list as input and converts it to a tuple.
 *
 * @param listData The list to be converted.
 * @return The tuple representation of the given list.
 */
fun convertListToTuple(listData: List<Any>): Pair<Any, Any> {
/**
 * This function takes a list as input and converts it to a tuple.
 *
 * @param listData The list to be converted.
 * @return The tuple representation of the given list.
 */
fun convertListToTuple(listData: List<Any>): Pair<Any, Any> {

    // Check if the input is a list
    if (listData !is List<*>) {
        return Pair("Input must be a list!", "")
    }

    // Convert list to tuple
    val tupleData = listData.toTypedArray()

    return Pair(tupleData[0], tupleData[1])
}