f::take_until (public)
f::take_until p xs
Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl
- Parameters:
- p (required)
- xs (required)
- 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):
- Testcases:
- functional_api
Source code: set index 0 foreach x $xs { incr index if { [$p $x] } { break } } take $index $xsXQL Not present: Generic, PostgreSQL, Oracle