def get_list_string(data: list, delim: str = '\t', fmt: str = '{}') -> str:
    """Converts a 1D data array into a [a0, a1, a2,..., an] formatted string."""
    result = "["
    first = True
    for i in data:
        if not first:
            result += delim + " "
        else:
            first = False

        result += fmt.format(i)

    result += "]"
    return result