map-from-as ( ... seq quot: ( ... elt -- ... newelt ) from exemplar -- ... newseq )


Vocabulary
sequences.extras

Inputs
seqa sequence
quota quotation
froman integer
exemplaran object


Outputs
newseqa sequence


Word description
A version of map-from where the resultant sequence has the same class as exemplar

Definition


: map-from-as
( ... seq quot: ( ... elt -- ... newelt ) from exemplar -- ... newseq )
-rotd [ sequence-operator nipd ] dip map-integers-from-as ;
inline