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

map-combinations ( ... seq k quot: ( ... elt -- ... newelt ) -- ... newseq )

Vocabulary
math.combinatorics

Inputs

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

Outputs

newseq an object

Definition

USING: math.combinatorics.private sequences ;

IN: math.combinatorics

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