def sum(self, projection=None):
        if projection:
            return sum(self.map(projection))
        else:
            return sum(self)
Takes sum of elements in sequence.
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.sum