f::choose (public, deprecated)

 f::choose n k

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

Deprecated. Invoking this procedure generates a warning.

Here's how to compute 'n choose k' like a real nerd. DEPRECATED: As of tcl8.5, Tcl has native support for 'lambda' provided by means of 'apply' per TIP 194. Tcllib provides a 'lambda' package with procs that make use of it.


See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) f::bind f::bind (public, deprecated) f::enum_from_to f::enum_from_to (public) f::fold f::fold (public) f::iterate f::iterate (public) f::choose f::choose f::choose->ad_get_tcl_call_stack f::choose->f::bind f::choose->f::enum_from_to f::choose->f::fold f::choose->f::iterate

No testcase defined.
Source code:
ns_log Notice "Deprecated proc f::choose used:\n[ad_get_tcl_call_stack]"

    fold mul 1 [transpose [list [iterate $k [bind flip - 1] $n] [enum_from_to 1 $k]]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: