/**
 * This function takes a list of patterns, an element to append, and the number of times the element should be appended to the list.
 * It then appends the element to the list the given number of times.
 *
 * @param patternList A list of patterns (List<String>)
 * @param element The element to append (String)
 * @param times The number of times to append the element (Int)
 * @return Updated list of patterns with the element appended the specified number of times
 */
fun addPatternElements(patternList: MutableList<String>, element: String, times: Int): List<String> {

    repeat(times) {
        patternList.add(element)
    }
    
    return patternList
}
/**
 * This function takes a list of patterns, an element to append, and the number of times the element should be appended to the list.
 * It then appends the element to the list the given number of times.
 *
 * @param patternList A list of patterns (List<String>)
 * @param element The element to append (String)
 * @param times The number of times to append the element (Int)
 * @return Updated list of patterns with the element appended the specified number of times
 */
fun addPatternElements(patternList: MutableList<String>, element: String, times: Int): List<String> {
/**
 * This function takes a list of patterns, an element to append, and the number of times the element should be appended to the list.
 * It then appends the element to the list the given number of times.
 *
 * @param patternList A list of patterns (List<String>)
 * @param element The element to append (String)
 * @param times The number of times to append the element (Int)
 * @return Updated list of patterns with the element appended the specified number of times
 */
fun addPatternElements(patternList: MutableList<String>, element: String, times: Int): List<String> {

    repeat(times) {
        patternList.add(element)
    }
    
    return patternList
}