Vocabulary
sequences

Inputs
seqa sequence
na non-negative integer
eltan object


Outputs
paddeda new sequence


Word description
Outputs a new sequence consisting of seq padded on the left with enough repetitions of elt to have the result be of length n.

Examples
USING: io sequences ; { "ab" "quux" } [ 5 CHAR: - pad-head print ] each
---ab -quux


Definition