Sha256: bc55ed8ffe3f77b1dc4216c137830e3fe1502d597c56641333193211fb16fd6c

Contents?: true

Size: 241 Bytes

Versions: 396

Compression:

Stored size: 241 Bytes

Contents

def keep(seq, pred):
    res = []
    for el in seq:
        if pred(el):
            res.append(el)
    return res


def discard(seq, pred):
    res = []
    for el in seq:
        if not pred(el):
            res.append(el)
    return res

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/python/exercises/strain/example.py
trackler-2.2.1.138 tracks/python/exercises/strain/example.py
trackler-2.2.1.137 tracks/python/exercises/strain/example.py
trackler-2.2.1.136 tracks/python/exercises/strain/example.py
trackler-2.2.1.135 tracks/python/exercises/strain/example.py
trackler-2.2.1.134 tracks/python/exercises/strain/example.py
trackler-2.2.1.133 tracks/python/exercises/strain/example.py
trackler-2.2.1.132 tracks/python/exercises/strain/example.py
trackler-2.2.1.131 tracks/python/exercises/strain/example.py
trackler-2.2.1.130 tracks/python/exercises/strain/example.py
trackler-2.2.1.129 tracks/python/exercises/strain/example.py
trackler-2.2.1.128 tracks/python/exercises/strain/example.py
trackler-2.2.1.127 tracks/python/exercises/strain/example.py
trackler-2.2.1.126 tracks/python/exercises/strain/example.py
trackler-2.2.1.125 tracks/python/exercises/strain/example.py
trackler-2.2.1.124 tracks/python/exercises/strain/example.py
trackler-2.2.1.123 tracks/python/exercises/strain/example.py
trackler-2.2.1.122 tracks/python/exercises/strain/example.py
trackler-2.2.1.121 tracks/python/exercises/strain/example.py
trackler-2.2.1.120 tracks/python/exercises/strain/example.py