/**
 * This function takes a list of crops and a maximum length of description as input,
 * and returns a list of string slices that describe the crops, using list comprehension and string slicing.
 * The description of each crop should be truncated to the maximum length given.
 */
fun cropDescription(crops: List<String>, length: Int): List<String> {

    return crops.map { if (it.length > length) it.substring(0, length) + "..." else it }
}
/**
 * This function takes a list of crops and a maximum length of description as input,
 * and returns a list of string slices that describe the crops, using list comprehension and string slicing.
 * The description of each crop should be truncated to the maximum length given.
 */
fun cropDescription(crops: List<String>, length: Int): List<String> {
/**
 * This function takes a list of crops and a maximum length of description as input,
 * and returns a list of string slices that describe the crops, using list comprehension and string slicing.
 * The description of each crop should be truncated to the maximum length given.
 */
fun cropDescription(crops: List<String>, length: Int): List<String> {

    return crops.map { if (it.length > length) it.substring(0, length) + "..." else it }
}