def concat(arr, sep=",\n", border=None):
    """
    Concatenate items in an array using seperator `sep`.
    """
    if border is None:
        return sep.join(str(x) for x in arr)
    return border.format(sep.join(str(x) for x in arr))