reduce-permutations ( ... seq identity quot: ( ... prev elt -- ... next ) -- ... result ) (original) (raw)

reduce-permutations ( ... seq identity quot: ( ... prev elt -- ... next ) -- ... result )

Vocabulary
math.combinatorics

Inputs

seq an object
identity an object
quot a quotation with stack effect ( ... prev elt -- ... next )

Outputs

result an object

Definition

USING: kernel ;

IN: math.combinatorics

: reduce-permutations
( ... seq identity quot: ( ... prev elt -- ... next ) -- ... result )
swapd each-permutation ; inline