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.78 tracks/python/exercises/strain/example.py
trackler-2.2.1.77 tracks/python/exercises/strain/example.py
trackler-2.2.1.76 tracks/python/exercises/strain/example.py
trackler-2.2.1.75 tracks/python/exercises/strain/example.py
trackler-2.2.1.74 tracks/python/exercises/strain/example.py
trackler-2.2.1.73 tracks/python/exercises/strain/example.py
trackler-2.2.1.72 tracks/python/exercises/strain/example.py
trackler-2.2.1.71 tracks/python/exercises/strain/example.py
trackler-2.2.1.70 tracks/python/exercises/strain/example.py
trackler-2.2.1.69 tracks/python/exercises/strain/example.py
trackler-2.2.1.68 tracks/python/exercises/strain/example.py
trackler-2.2.1.67 tracks/python/exercises/strain/example.py
trackler-2.2.1.66 tracks/python/exercises/strain/example.py
trackler-2.2.1.65 tracks/python/exercises/strain/example.py
trackler-2.2.1.64 tracks/python/exercises/strain/example.py
trackler-2.2.1.63 tracks/python/exercises/strain/example.py
trackler-2.2.1.62 tracks/python/exercises/strain/example.py
trackler-2.2.1.61 tracks/python/exercises/strain/example.py
trackler-2.2.1.60 tracks/python/exercises/strain/example.py
trackler-2.2.1.59 tracks/python/exercises/strain/example.py