VocabularysequencesInputsOutputsWord descriptionCalls the quotation with the element of the sequence and its index on the stack, with the index on the top of the stack. Collects the outputs of the quotation and outputs them in a sequence of the same type as the
exemplar sequence.
ExamplesUSING: arrays sequences prettyprint ;
{ 10 20 30 } [ 2array ] V{ } map-index-as .
V{ { 10 0 } { 20 1 } { 30 2 } }
See alsomap,
map!,
map-as,
map-indexDefinition