fn:scan-left
Produces the sequence of successive partial results from the evaluation of
fn:fold-left() with the same arguments.
scan-left($input as item()*, $init as item()*, $action as fn(item()*, item()) as item()*) ➔ array(*)*
Arguments | ||||
| $input | item()* | The input sequence | |
| $init | item()* | The initial value | |
| $action | fn(item()*, item()) as item()* | The function to be applied to each item in the sequence | |
Result | array(*)* | |||
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 4.0, XSLT 4.0, and XQuery 4.0. Not implemented in Saxon.
Notes on the Saxon implementation
New in XPath 4.0. Not yet implemented in Saxon.