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
xs
Returns:
boolean

Partial Call Graph (max 5 caller/called nodes):
%3 test_functional_api functional_api (test acs-tcl) f::any f::any test_functional_api->f::any f::map f::map (public) f::any->f::map f::or f::or (public) f::any->f::or

Testcases:
functional_api
[ show source ]
Show another procedure: