f::bind (public)

 f::bind f [ args... ]

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

Binds args to the first k arguments of the n-ary function f and returns the resulting (n-k)-ary function.

Parameters:
f (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_functional_api functional_api (test acs-tcl) f::bind f::bind test_functional_api->f::bind f::lambda f::lambda (public) f::bind->f::lambda f::choose f::choose (public) f::choose->f::bind f::pascal f::pascal (public) f::pascal->f::bind f::reverse f::reverse (public, deprecated) f::reverse->f::bind

Testcases:
functional_api
Source code:
    set i 0
    foreach arg $args {
        append code "set [lindex [info args $f$i] {$arg}\n"
        incr i
    }
    append code [info body $f]
    set proc_args [info args $f]
    set num_proc_args [llength $proc_args]
    lambda [lrange $proc_args [llength $args$num_proc_args$code
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: