count-combinations ( ... seq k quot: ( ... elt -- ... ? ) -- ... n )


Vocabulary
math.combinatorics

Inputs
seqan object
kan object
quota quotation with stack effect ( ... elt -- ... ? )


Outputs
nan object


Definition


: count-combinations
( ... seq k quot: ( ... elt -- ... ? ) -- ... n )
0 swap [ [ 1 + ] when ] compose reduce-combinations ; inline