f::span (public)

 f::span p xs

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

Splits a list using take_while and drop_while. Usage span p xs = (takeWhile p xs, dropWhile p xs)

Parameters:
p (required)
xs (required)

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

Testcases:
functional_api
Source code:
    list [take_while $p $xs] [drop_while $p $xs]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: