<repetition> ( len elt -- repetition )
Factor handbook > The language > Collections > Sequence operations > Reshaping sequences

Prev:repetition
Next:reverse ( seq -- newseq )


Vocabulary
sequences

Inputs and outputs
lena non-negative integer
eltan object
repetitiona repetition


Word description
Creates a new repetition.

Examples
USING: arrays prettyprint sequences ; 10 "X" <repetition> >array .
{ "X" "X" "X" "X" "X" "X" "X" "X" "X" "X" }

USING: prettyprint sequences ; 10 "X" <repetition> concat .
"XXXXXXXXXX"


Definition