f::copy (public)

 f::copy n x

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

Example: f::copy 10 7 = {7 7 7 7 7 7 7 7 7 7}

Parameters:
n
x
Returns:
list of n copies of x

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

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