each-index-from ( ... seq quot: ( ... elt index -- ... ) i -- ... )


Vocabulary
sequences.extras

Inputs
seqa sequence
quota quotation with stack effect ( ... elt index -- ... )
ia starting index


Outputs
None

Word description
Calls the quotation with the element of the sequence and its index on the stack, with the index on the top of the stack, from a starting index.

Examples
USING: arrays sequences.extras prettyprint ; { 10 20 30 } [ 2array . ] 1 each-index-from
{ 20 1 } { 30 2 }


Definition