Sha256: 548bdc5d7360571f01d5d2d99838b3b0f6c7b87b25728c2cb28aa75d2c843470

Contents?: true

Size: 150 Bytes

Versions: 396

Compression:

Stored size: 150 Bytes

Contents

# [op(x) for x in seq] would be nice but trivial


def accumulate(seq, op):
    res = []
    for el in seq:
        res.append(op(el))
    return res

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.0.4.0 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.9 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.8 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.7 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.6 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.5 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.4 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.3 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.2 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.1 tracks/python/exercises/accumulate/example.py
trackler-2.0.3.0 tracks/python/exercises/accumulate/example.py
trackler-2.0.2.0 tracks/python/exercises/accumulate/example.py
trackler-2.0.1.2 tracks/python/exercises/accumulate/example.py
trackler-2.0.1.1 tracks/python/exercises/accumulate/example.py
trackler-2.0.1.0 tracks/python/exercises/accumulate/example.py
trackler-2.0.0.10 tracks/python/exercises/accumulate/example.py
trackler-2.0.0.9 tracks/python/exercises/accumulate/example.py
trackler-2.0.0.8 tracks/python/exercises/accumulate/example.py
trackler-2.0.0.7 tracks/python/exercises/accumulate/example.py
trackler-2.0.0.6 tracks/python/exercises/accumulate/example.py