def all(pred, seq=EMPTY): if seq is EMPTY: return _all(pred) return _all(ximap(pred, seq))
def all(pred, seq=EMPTY): """Checks if all items in seq pass pred (or are truthy).""" if seq is EMPTY: return _all(pred) return _all(ximap(pred, seq))