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.2.1.119 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.118 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.117 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.116 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.115 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.114 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.113 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.111 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.110 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.109 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.108 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.107 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.106 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.105 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.104 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.103 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.102 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.101 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.100 tracks/python/exercises/accumulate/example.py
trackler-2.2.1.99 tracks/python/exercises/accumulate/example.py