f::bind2nd (public)

 f::bind2nd f arg

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

Binds arg to the 2nd argument of f.

Parameters:
f (required)
arg (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_functional_api functional_api (test acs-tcl) f::bind2nd f::bind2nd test_functional_api->f::bind2nd f::cons f::cons (public) f::bind2nd->f::cons f::head f::head (public) f::bind2nd->f::head f::lambda f::lambda (public) f::bind2nd->f::lambda

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