

def Predicate(predicate):
    '\n    Display only those objects that match the given predicate\n\n    Example::\n        self.olv.SetFilter(Filter.Predicate(lambda x: x.IsOverdue()))\n    '
    return (lambda modelObjects: [x for x in modelObjects if predicate(x)])

dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/oldOlv/Filter.py Predicate/original