/**
 * This function takes in the name of a nurse, start and stop parameters, and performs the following tasks:
 * 1. Copies a list of numbers from start to stop.
 * 2. Creates a new range using the start and stop parameters.
 * 3. Returns the newly created range as a list along with the nurse's name.
 *
 * @param nurseName Name of the nurse.
 * @param start Start parameter of the range.
 * @param stop Stop parameter of the range (exclusive).
 * @return Newly created range as a list with the nurse's name.
 *
 * Example:
 * copyAndCreateRange("Nurse Jane", 1, 10) -> ['Nurse Jane', 1, 2, 3, 4, 5, 6, 7, 8, 9]
 */
fun copyAndCreateRange(nurseName: String, start: Int, stop: Int): List<Any> {

    val numbers = (start until stop).toList() // Copying list of numbers from start to stop
    val newRange = mutableListOf<Any>().apply {
        add(nurseName) // Creating a new range with nurse's name at the beginning
        addAll(numbers)
    }
    return newRange
}
/**
 * This function takes in the name of a nurse, start and stop parameters, and performs the following tasks:
 * 1. Copies a list of numbers from start to stop.
 * 2. Creates a new range using the start and stop parameters.
 * 3. Returns the newly created range as a list along with the nurse's name.
 *
 * @param nurseName Name of the nurse.
 * @param start Start parameter of the range.
 * @param stop Stop parameter of the range (exclusive).
 * @return Newly created range as a list with the nurse's name.
 *
 * Example:
 * copyAndCreateRange("Nurse Jane", 1, 10) -> ['Nurse Jane', 1, 2, 3, 4, 5, 6, 7, 8, 9]
 */
fun copyAndCreateRange(nurseName: String, start: Int, stop: Int): List<Any> {
/**
 * This function takes in the name of a nurse, start and stop parameters, and performs the following tasks:
 * 1. Copies a list of numbers from start to stop.
 * 2. Creates a new range using the start and stop parameters.
 * 3. Returns the newly created range as a list along with the nurse's name.
 *
 * @param nurseName Name of the nurse.
 * @param start Start parameter of the range.
 * @param stop Stop parameter of the range (exclusive).
 * @return Newly created range as a list with the nurse's name.
 *
 * Example:
 * copyAndCreateRange("Nurse Jane", 1, 10) -> ['Nurse Jane', 1, 2, 3, 4, 5, 6, 7, 8, 9]
 */
fun copyAndCreateRange(nurseName: String, start: Int, stop: Int): List<Any> {

    val numbers = (start until stop).toList() // Copying list of numbers from start to stop
    val newRange = mutableListOf<Any>().apply {
        add(nurseName) // Creating a new range with nurse's name at the beginning
        addAll(numbers)
    }
    return newRange
}