Handbook
Glossary
each-combination ( ... seq k quot: ( ... elt -- ... ) -- ... )
Vocabulary
math.combinatorics
Inputs
seq
a
sequence
k
a non-negative integer
quot
a
quotation
with stack effect
( ... elt -- ... )
Outputs
None
Word description
Applies the quotation to each combination of
seq
choosing
k
elements, in order.
Definition
USING:
math.combinatorics.private
sequences
;
IN:
math.combinatorics
:
each-combination
( ... seq k quot: ( ... elt -- ... ) -- ... )
combinations-quot
each
;
inline