/**
 * Given a list of tuples and a target value, find the index of the tuple that contains the target value.
 * If the target value is not found in any of the tuples, return -1.
 *
 * @param tupleList A list of tuples, where each tuple contains multiple values.
 * @param target The value to be searched for.
 * @return The index of the tuple that contains the target value, or -1 if not found.
 */
fun breakLoop(tupleList: List<List<Any>>, target: Any): Int {

    for (i in tupleList.indices) {
        val tuple = tupleList[i]
        for (value in tuple) {
            if (value == target) {
                return i
            }
        }
    }
    return -1
}
/**
 * Given a list of tuples and a target value, find the index of the tuple that contains the target value.
 * If the target value is not found in any of the tuples, return -1.
 *
 * @param tupleList A list of tuples, where each tuple contains multiple values.
 * @param target The value to be searched for.
 * @return The index of the tuple that contains the target value, or -1 if not found.
 */
fun breakLoop(tupleList: List<List<Any>>, target: Any): Int {
/**
 * Given a list of tuples and a target value, find the index of the tuple that contains the target value.
 * If the target value is not found in any of the tuples, return -1.
 *
 * @param tupleList A list of tuples, where each tuple contains multiple values.
 * @param target The value to be searched for.
 * @return The index of the tuple that contains the target value, or -1 if not found.
 */
fun breakLoop(tupleList: List<List<Any>>, target: Any): Int {

    for (i in tupleList.indices) {
        val tuple = tupleList[i]
        for (value in tuple) {
            if (value == target) {
                return i
            }
        }
    }
    return -1
}