Changes

Jump to navigation Jump to search
562 bytes added ,  01:12, 11 December 2020
no edit summary
let $nodes := util:replicate(<node/>, 2, true())
return $nodes[1] is $nodes[2]
</syntaxhighlight>
|}
 
==util:intersperse==
 
{{Mark|Introduced with Version 9.5.}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|util:intersperse|$items as item()*, $separator as item()*|item()*}}
|-
| '''Summary'''
|Inserts the defined {{Code|$separator}} between the {{Code|$items}} of a sequence and returns the resulting sequence.
|-
| '''Examples'''
| Inserts semicolon strings between the three input items:
<syntaxhighlight lang="xquery">
fn:intersperse((<_>1</_>, <_>2</_>, <_>3</_>), '; ')
</syntaxhighlight>
|}
;Version 9.5
* Added: [[#util:intersperse|util:intersperse]]
* Updated: [[#util:replicate|util:replicate]]: Third argument added.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu