sh_cpl/src/cpl_query/_query/any_query.py

8 lines
233 B
Python
Raw Normal View History

2021-07-25 19:15:02 +02:00
from cpl_query._query.where_query import where_query
from cpl_query.extension.iterable_abc import IterableABC
def any_query(_list: IterableABC, _func: str) -> bool:
result = where_query(_list, _func)
return len(result) > 0