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

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


Vocabulary
sequences

Inputs
lena non-negative integer
eltan object


Outputs
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