fn:intersperse((<_>1</_>, <_>2</_>, <_>3</_>), '; ')
</syntaxhighlight>
|}
==util:duplicates==
{{Mark|Introduced with Version 9.5.}}
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|util:duplicates|$sequence as item()*|xs:anyAtomicType*}}<br/>{{Func|util:duplicates|$sequence as item()*, $collation as xs:string|xs:anyAtomicType*}}
|-
| '''Summary'''
|Returns duplicate values in a {{Code|$sequence}}. See [https://www.w3.org/TR/xpath-functions-31/#func-distinct-values fn:distinct-values] for the applied equality rules and the usage of the {{Code|$collation}} argument.
|-
| '''Examples'''
| Returns <code>1</code>: <code>util:duplicates((1, 2, 1, 1))</code>
|}