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.98 tracks/python/exercises/strain/example.py
trackler-2.2.1.97 tracks/python/exercises/strain/example.py
trackler-2.2.1.96 tracks/python/exercises/strain/example.py
trackler-2.2.1.95 tracks/python/exercises/strain/example.py
trackler-2.2.1.94 tracks/python/exercises/strain/example.py
trackler-2.2.1.93 tracks/python/exercises/strain/example.py
trackler-2.2.1.92 tracks/python/exercises/strain/example.py
trackler-2.2.1.91 tracks/python/exercises/strain/example.py
trackler-2.2.1.90 tracks/python/exercises/strain/example.py
trackler-2.2.1.89 tracks/python/exercises/strain/example.py
trackler-2.2.1.88 tracks/python/exercises/strain/example.py
trackler-2.2.1.87 tracks/python/exercises/strain/example.py
trackler-2.2.1.86 tracks/python/exercises/strain/example.py
trackler-2.2.1.85 tracks/python/exercises/strain/example.py
trackler-2.2.1.84 tracks/python/exercises/strain/example.py
trackler-2.2.1.83 tracks/python/exercises/strain/example.py
trackler-2.2.1.82 tracks/python/exercises/strain/example.py
trackler-2.2.1.81 tracks/python/exercises/strain/example.py
trackler-2.2.1.80 tracks/python/exercises/strain/example.py
trackler-2.2.1.79 tracks/python/exercises/strain/example.py