f::choose (public)
f::choose n k
Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl
Here's how to compute 'n choose k' like a real nerd.
- Parameters:
- n (required)
- k (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: fold mul 1 [transpose [list [iterate $k [bind flip - 1] $n] [enum_from_to 1 $k]]]XQL Not present: Generic, PostgreSQL, Oracle