def any(pred, seq=EMPTY): if seq is EMPTY: return _any(pred) return _any(ximap(pred, seq))
def any(pred, seq=EMPTY): """Checks if any item in seq passes pred (or is truthy).""" if seq is EMPTY: return _any(pred) return _any(ximap(pred, seq))