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 (required)
x (required)
Returns:
list of n copies of x

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: