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.159 tracks/python/exercises/strain/example.py
trackler-2.2.1.158 tracks/python/exercises/strain/example.py
trackler-2.2.1.157 tracks/python/exercises/strain/example.py
trackler-2.2.1.156 tracks/python/exercises/strain/example.py
trackler-2.2.1.155 tracks/python/exercises/strain/example.py
trackler-2.2.1.154 tracks/python/exercises/strain/example.py
trackler-2.2.1.153 tracks/python/exercises/strain/example.py
trackler-2.2.1.152 tracks/python/exercises/strain/example.py
trackler-2.2.1.151 tracks/python/exercises/strain/example.py
trackler-2.2.1.150 tracks/python/exercises/strain/example.py
trackler-2.2.1.149 tracks/python/exercises/strain/example.py
trackler-2.2.1.148 tracks/python/exercises/strain/example.py
trackler-2.2.1.147 tracks/python/exercises/strain/example.py
trackler-2.2.1.146 tracks/python/exercises/strain/example.py
trackler-2.2.1.145 tracks/python/exercises/strain/example.py
trackler-2.2.1.144 tracks/python/exercises/strain/example.py
trackler-2.2.1.143 tracks/python/exercises/strain/example.py
trackler-2.2.1.142 tracks/python/exercises/strain/example.py
trackler-2.2.1.141 tracks/python/exercises/strain/example.py
trackler-2.2.1.140 tracks/python/exercises/strain/example.py