map-index! ( ... seq quot: ( ... elt index -- ... newelt ) -- ... seq )


Vocabulary
sequences.extras

Inputs
seqa sequence
quota quotation


Outputs
seqa sequence


Word description
A version of map-index which modifies seq in place.

Definition


: map-index!
( ... seq quot: ( ... elt index -- ... newelt ) -- ... seq )
over [ [ sequence-index-operator ] dip collect ] keep ;
inline