(x)
iflatten(sequence) -> iterator

    Similar to ``.flatten()``, but returns iterator instead
iflatten(sequence) -> iterator
iflatten ( sequence ) - > iterator
def iflatten(x):
    """iflatten(sequence) -> iterator

    Similar to ``.flatten()``, but returns iterator instead"""
    for el in x:
        if is_listlike(el):
            for el_ in iflatten(el):
                yield el_
        else:
            yield el
def iflatten ( x ) : for el in x : if is_listlike ( el ) : for el_ in iflatten ( el ) : yield el_ else : yield el