f::take_until (public)

 f::take_until p xs

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

returns the list of elements up to and including the first element of xs which satisfies p

Parameters:
p
xs

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

Testcases:
No testcase defined.
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: