/**
 * This function retrieves a list of garments available in different sizes and colors.
 *
 * @param garmentsList A list of garment names.
 * @param sizesList A list of garment sizes.
 * @param colorsList A list of garment colors.
 * @return A list of tuples containing the three elements: the garment name, size, and color.
 */
fun getGarments(garmentsList: List<String>?, sizesList: List<String>?, colorsList: List<String>?): List<Triple<String, String, String>>? {

    if (listOf(garmentsList, sizesList, colorsList).any { it == null }) {
        return null
    }

    if (garmentsList!!.size == sizesList!!.size && garmentsList.size == colorsList!!.size) {
        return garmentsList.mapIndexed { index, garmentName ->
            Triple(garmentName, sizesList[index], colorsList[index])
        }
    }

    return null
}
/**
 * This function retrieves a list of garments available in different sizes and colors.
 *
 * @param garmentsList A list of garment names.
 * @param sizesList A list of garment sizes.
 * @param colorsList A list of garment colors.
 * @return A list of tuples containing the three elements: the garment name, size, and color.
 */
fun getGarments(garmentsList: List<String>?, sizesList: List<String>?, colorsList: List<String>?): List<Triple<String, String, String>>? {
/**
 * This function retrieves a list of garments available in different sizes and colors.
 *
 * @param garmentsList A list of garment names.
 * @param sizesList A list of garment sizes.
 * @param colorsList A list of garment colors.
 * @return A list of tuples containing the three elements: the garment name, size, and color.
 */
fun getGarments(garmentsList: List<String>?, sizesList: List<String>?, colorsList: List<String>?): List<Triple<String, String, String>>? {

    if (listOf(garmentsList, sizesList, colorsList).any { it == null }) {
        return null
    }

    if (garmentsList!!.size == sizesList!!.size && garmentsList.size == colorsList!!.size) {
        return garmentsList.mapIndexed { index, garmentName ->
            Triple(garmentName, sizesList[index], colorsList[index])
        }
    }

    return null
}