fn:fold-left( $function as function(item()*, item()) as item()*, $zero as item()*, $seq as item()* ) as item()*
Processes the supplied sequence from left to right, applying the supplied function repeatedly to each item in turn, together with an accumulated result value. For more details, see XPath 3.0 Functions and Operators.
Parameters | |
---|---|
function | The fold function value. |
zero | The zero argument. |
seq | The sequence to fold |
fn:fold-left(function($z, $a) { $z || "," || $a }, ">>", ("a","b","c")) => ">>,a,b,c"