/**
 * Create a tuple from a range of values and determine the comparison result with other values.
 *
 * @param rangeStart The starting value of the range (inclusive).
 * @param rangeEnd The ending value of the range (exclusive).
 * @param comparisonValue The value to compare with each element in the tuple.
 * @return A tuple containing the range of values and comparison results.
 *
 * Example:
 * createTuple(1, 5, 3) -> listOf("1: Less", "2: Less", "3: Equal", "4: Greater")
 */
fun createTuple(rangeStart: Int, rangeEnd: Int, comparisonValue: Int): List<String> {

    val result = mutableListOf<String>()
    for (value in rangeStart until rangeEnd) {
        when {
            value < comparisonValue -> result.add("$value: Less")
            value == comparisonValue -> result.add("$value: Equal")
            else -> result.add("$value: Greater")
        }
    }
    return result
}
/**
 * Create a tuple from a range of values and determine the comparison result with other values.
 *
 * @param rangeStart The starting value of the range (inclusive).
 * @param rangeEnd The ending value of the range (exclusive).
 * @param comparisonValue The value to compare with each element in the tuple.
 * @return A tuple containing the range of values and comparison results.
 *
 * Example:
 * createTuple(1, 5, 3) -> listOf("1: Less", "2: Less", "3: Equal", "4: Greater")
 */
fun createTuple(rangeStart: Int, rangeEnd: Int, comparisonValue: Int): List<String> {
/**
 * Create a tuple from a range of values and determine the comparison result with other values.
 *
 * @param rangeStart The starting value of the range (inclusive).
 * @param rangeEnd The ending value of the range (exclusive).
 * @param comparisonValue The value to compare with each element in the tuple.
 * @return A tuple containing the range of values and comparison results.
 *
 * Example:
 * createTuple(1, 5, 3) -> listOf("1: Less", "2: Less", "3: Equal", "4: Greater")
 */
fun createTuple(rangeStart: Int, rangeEnd: Int, comparisonValue: Int): List<String> {

    val result = mutableListOf<String>()
    for (value in rangeStart until rangeEnd) {
        when {
            value < comparisonValue -> result.add("$value: Less")
            value == comparisonValue -> result.add("$value: Equal")
            else -> result.add("$value: Greater")
        }
    }
    return result
}