f::all (public)

 f::all pred xs

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

Takes a predicate pred and a list xs and returns 1 if all elements of xs fulfill pred. Examples: f::all f::even_p {2 44 64 80 10} = 1 f::all f::even_p {2 44 65 80 10} = 0

Parameters:
pred
xs
Returns:
boolean

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

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