Returns a string formed by an indicated number of repetitions of a pattern.

1 string.fill

<string.fill>
    <pattern /> !
    <repeats /> !
</string.fill>

Exceptions

requires 2 arguments, received: ...

The 2 entry parameters has been specified.

Example
Copy
<xsql-script name='string_fill'>
    <body>
        <set name='pattern'>hello world.</set>
        <set name='repeats'>25</set>
        <println><string.fill><pattern/><repeats/></string.fill></println>
    </body>
</xsql-script>

Returns:

Copy
hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.