map-permutations ( ... seq quot: ( ... elt -- ... newelt ) -- ... newseq ) (original) (raw)

map-permutations ( ... seq quot: ( ... elt -- ... newelt ) -- ... newseq )

Vocabulary
math.combinatorics

Inputs

seq an object
quot a quotation with stack effect ( ... elt -- ... newelt )

Outputs

newseq an object

Definition

USING: math.combinatorics.private sequences ;

IN: math.combinatorics

: map-permutations
( ... seq quot: ( ... elt -- ... newelt ) -- ... newseq )
permutations-quot map ; inline