f::cycle (public)

 f::cycle n xs

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

Example: f::cycle 4 {1 2 3} = {1 2 3 1 2 3 1 2 3 1 2 3}

Parameters:
n (required)
xs (required)
Returns:
concatenated list of n copies of xs

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

Testcases:
functional_api
Source code:
    set result {}
    for {set i 0} {$i<$n} {incr i} {
        lappend result {*}$xs
    }
    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: