public class FoldLeftFn.FoldLeftFold extends java.lang.Object implements Fold
Constructor and Description |
---|
FoldLeftFold(XPathContext context,
Sequence zero,
Function function) |
Modifier and Type | Method and Description |
---|---|
boolean |
isFinished()
Ask whether the computation has completed.
|
void |
processItem(Item item)
Process one item in the input sequence, returning a new copy of the working data
|
Sequence |
result()
Compute the final result of the function, when all the input has been processed
|
public FoldLeftFold(XPathContext context, Sequence zero, Function function)
public void processItem(Item item) throws XPathException
Fold
processItem
in interface Fold
item
- the item to be processed from the input sequenceXPathException
- if a dynamic error occurspublic boolean isFinished()
Fold
isFinished
in interface Fold
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.