/**
 * This function takes a list of initial elements and a string format, and returns a list where each element is created by
 * applying the format to each initial element.
 *
 * @param elements A list of initial elements.
 * @param formatStr A string containing a format specifier.
 * @return A list of elements where each element is created by applying the format to each initial element.
 */
fun createCustomList(elements: List<Any>, formatStr: String): List<String> {

    val result = mutableListOf<String>()
    for (element in elements) {
        result.add(formatStr.format(element))
    }
    return result
}
/**
 * This function takes a list of initial elements and a string format, and returns a list where each element is created by
 * applying the format to each initial element.
 *
 * @param elements A list of initial elements.
 * @param formatStr A string containing a format specifier.
 * @return A list of elements where each element is created by applying the format to each initial element.
 */
fun createCustomList(elements: List<Any>, formatStr: String): List<String> {
/**
 * This function takes a list of initial elements and a string format, and returns a list where each element is created by
 * applying the format to each initial element.
 *
 * @param elements A list of initial elements.
 * @param formatStr A string containing a format specifier.
 * @return A list of elements where each element is created by applying the format to each initial element.
 */
fun createCustomList(elements: List<Any>, formatStr: String): List<String> {

    val result = mutableListOf<String>()
    for (element in elements) {
        result.add(formatStr.format(element))
    }
    return result
}