/**
 * Given a list of numbers [lst] and a positive integer [n], the function should create a new list by appending [n] to each element of [lst] using list comprehension.
 *
 * @param n A positive integer to be appended to each element of [lst].
 * @param lst A list of numbers.
 * @return A new list obtained by appending [n] to each element of [lst].
 *
 * Example:
 * appendNewElements(5, listOf(1, 2, 3, 4)) -> [15, 25, 35, 45]
 */
fun appendNewElements(n: Int, lst: List<Int>): List<Int> {

    return lst.map { it + n }
}
/**
 * Given a list of numbers [lst] and a positive integer [n], the function should create a new list by appending [n] to each element of [lst] using list comprehension.
 *
 * @param n A positive integer to be appended to each element of [lst].
 * @param lst A list of numbers.
 * @return A new list obtained by appending [n] to each element of [lst].
 *
 * Example:
 * appendNewElements(5, listOf(1, 2, 3, 4)) -> [15, 25, 35, 45]
 */
fun appendNewElements(n: Int, lst: List<Int>): List<Int> {
/**
 * Given a list of numbers [lst] and a positive integer [n], the function should create a new list by appending [n] to each element of [lst] using list comprehension.
 *
 * @param n A positive integer to be appended to each element of [lst].
 * @param lst A list of numbers.
 * @return A new list obtained by appending [n] to each element of [lst].
 *
 * Example:
 * appendNewElements(5, listOf(1, 2, 3, 4)) -> [15, 25, 35, 45]
 */
fun appendNewElements(n: Int, lst: List<Int>): List<Int> {

    return lst.map { it + n }
}