f::take_until (public)

 f::take_until p xs

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

Parameters:
p
xs
Returns:
the list of elements up to and including the first element of xs which satisfies p

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

Testcases:
functional_api
Source code:
    set index 0
    foreach x $xs {
        incr index
        if { [$p $x] } { break }
    }
    take $index $xs
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: