f::any (public)

 f::any pred xs

Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl

Takes a predicate pred and a list xs and returns 1 if there exists an element of xs that fulfills pred. Examples: f::any f::odd_p {2 44 64 80 10} = 0 f::any odd_p {2 44 65 80 10} = 1

Parameters:
pred (required)
xs (required)
Returns:
boolean

Testcases:
functional_api
Source code:
    or [map $pred $xs]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: