array:partition → fn:partition: empty results; examples #125
Labels
Editorial
Minor typos, wording clarifications, example fixes, etc.
Enhancement
A change or improvement to an existing feature
XQFO
An issue related to Functions and Operators
1. I think that an empty sequence should be returned if
array:partition
is invoked with an empty array. See e.g.fn:tokenize('')
, which also returns an empty sequence and no zero-character string.2. The last two example queries need to be revised, e.g. as follows:
Maybe an affirming
$add-when
function is more intuitive than$break-when
, in particular for function bodies with sequence operations and general comparisons.The text was updated successfully, but these errors were encountered: