/**
 * This function appends all elements from the given list (numbers) that are less than the target number to a new list.
 *
 * @param numbers A list of integers.
 * @param target An integer.
 * @return A new list containing all elements from the numbers list that are less than the target number.
 */
fun appendLessThan(numbers: List<Int>, target: Int): List<Int> {

    // Initialize an empty list to store the elements less than the target
    val result = mutableListOf<Int>()

    // Iterate over each element in the numbers list
    for (num in numbers) {
        // Check if the current element is less than the target
        if (num < target) {
            // Append the element to the result list
            result.add(num)
        }
    }

    return result
}
/**
 * This function appends all elements from the given list (numbers) that are less than the target number to a new list.
 *
 * @param numbers A list of integers.
 * @param target An integer.
 * @return A new list containing all elements from the numbers list that are less than the target number.
 */
fun appendLessThan(numbers: List<Int>, target: Int): List<Int> {
/**
 * This function appends all elements from the given list (numbers) that are less than the target number to a new list.
 *
 * @param numbers A list of integers.
 * @param target An integer.
 * @return A new list containing all elements from the numbers list that are less than the target number.
 */
fun appendLessThan(numbers: List<Int>, target: Int): List<Int> {

    // Initialize an empty list to store the elements less than the target
    val result = mutableListOf<Int>()

    // Iterate over each element in the numbers list
    for (num in numbers) {
        // Check if the current element is less than the target
        if (num < target) {
            // Append the element to the result list
            result.add(num)
        }
    }

    return result
}