

@staticmethod
def partition(collection, condition):
    return (filter(condition, collection), filter((lambda x: (not condition(x))), collection))

dataset/ETHPy150Open chriskiehl/Gooey/gooey/gui/presenter.py Presenter.partition/original