take_while p xsWhat it does:
returns the longest initial segment of xs whose elements satisfy pDefined in: /web/philip/tcl/ad-functional.tcl
Source code:
set index 0
foreach x $xs {
if { ![eval_unary $p $x] } { break }
incr index
}
take $index $xs