Changes

Jump to navigation Jump to search
715 bytes added ,  17:06, 13 November 2017
no edit summary
=Conventions=
All functions and errors in this module and errors are assigned to the <code><nowiki>http://basex.org/modules/util</nowiki></code> namespace, which is statically bound to the {{Code|util}} prefix.<br/>
=Functions=
|
* <code>util:last-from(reverse(1 to 100))</code> returns <code>1</code>.
|}
 
==util:replicate==
 
{{Mark|Introduced with Version 9.0}}.
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|util:replicate|$sequence as item()*, $count as xs:integer|item()*}}<br/>
|-
| '''Summary'''
|Returns {{Code|$count}} instances of the specified {{Code|$sequence}}. Equivalent to <code>(1 to $count) ! $sequence</code>.
|-
| '''Errors'''
|{{Error|negative|#Errors}} The specified number is negative.
|-
| '''Examples'''
|
* <code>util:replicate('A', 3)</code> returns <code>A A A</code>.
|}
 
=Errors=
 
{| class="wikitable" width="100%"
! width="110"|Code
|Description
|-
|{{Code|negative}}
|The specified number is negative.
|}
=Changelog=
 
;Version 9.0
* Added: [[#util:replicate|util:replicate]]
The Module was introduced with Version 8.5.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu