change-nths ( ... indices seq quot: ( ... elt -- ... elt' ) -- ... )


Vocabulary
sequences.extras

Inputs
indicesan object
seqa sequence
quota quotation


Outputs
None

Word description
Applies quot to the locations present in indices in sequence seq, modifying it in place.

Definition


: change-nths
( ... indices seq quot: ( ... elt -- ... elt' ) -- ... )
[ change-nth ] 2curry each ; inline