def take_until_including(condition):
    """
    >>> [1, 4, 6, 4, 1] > take_until_including(X > 5) | list
    [1, 4, 6]
    """
    def take_until_including_(interable):
        for i in interable:
            if not condition(i):
                yield i
            else:
                yield i
                break
    return take_until_including_