How to use the eventkit.ops.aggregate.Reduce.__init__ function in eventkit

To help you get started, we’ve selected a few eventkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github erdewit / eventkit / eventkit / ops / aggregate.py View on Github external
def __init__(self, source=None):
        Reduce.__init__(self, lambda prev, v: prev and bool(v), True, source)
github erdewit / eventkit / eventkit / ops / aggregate.py View on Github external
def __init__(self, source=None):
        Reduce.__init__(self, max, -float('inf'), source)
github erdewit / eventkit / eventkit / ops / aggregate.py View on Github external
def __init__(self, source=None):
        Reduce.__init__(self, min, float('inf'), source)
github erdewit / eventkit / eventkit / ops / aggregate.py View on Github external
def __init__(self, source=None):
        Reduce.__init__(self, lambda prev, v: prev or bool(v), False, source)
github erdewit / eventkit / eventkit / ops / aggregate.py View on Github external
def __init__(self, start=1, source=None):
        Reduce.__init__(self, operator.mul, start, source)
github erdewit / eventkit / eventkit / ops / aggregate.py View on Github external
def __init__(self, start=0, source=None):
        Reduce.__init__(self, operator.add, start, source)