'Joins together strings in an iterable.'

def join(self, iterable):

    result = ANSIString('')
    last_item = None
    for item in iterable:
        if (last_item is not None):
            result += self._raw_string
        if (not isinstance(item, ANSIString)):
            item = ANSIString(item)
        result += item
        last_item = item
    return result
