Fill - Maple Help

StringTools

 Fill
 generate a filled string

 Calling Sequence Fill( ch, n )

Parameters

 ch - single character string n - non-negative (32-bit) integer

Description

 • The Fill procedure generates a filled string from a specified length and fill character. The first argument is a fill character (a Maple string of length equal to one) used to produce the string. The second argument is the length of the string to generate; it must be a 32-bit integer.
 • All of the StringTools package commands treat strings as (null-terminated) sequences of $8$-bit (ASCII) characters.  Thus, there is no support for multibyte character encodings, such as unicode encodings.

Examples

 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $s≔\mathrm{Fill}\left("",10\right)$
 ${s}{≔}{""}$ (1)
 > $\mathrm{length}\left(s\right)$
 ${10}$ (2)
 > $\mathrm{Fill}\left("a",0\right)$
 ${""}$ (3)
 > $\mathrm{Fill}\left("a",5\right)$
 ${"aaaaa"}$ (4)