Creates a sequence handler by combining this one and a getNext
function such that when this
handler finishes, a second handler is created by passing its result ot getNext
.
Creates a sequence handler by combining this one and a getNext
function such that when this
handler finishes, a second handler is created by passing its result ot getNext
.
The output type of the second handler
The combined handler
Alias for apply
, to help use this object in for-comprehensions.
Alias for apply
, to help use this object in for-comprehensions.
Creates a sequence handler by combining this one and a getNext
function such that when this
handler finishes, a second handler is created by passing its result ot getNext
.
The output type of the second handler
A function that takes this handler's result to create a second handler
The combined handler
Convenience for using this object in for-comprehensions; wraps this ToSequence
by calling f
on the first handler's result and passing that into the getNext
function.
Convenience for using this object in for-comprehensions; wraps this ToSequence
by calling f
on the first handler's result and passing that into the getNext
function.
You probably don't want to call this directly
An intermediate object that can be used to create a Transformer from result of this Parser.
Examples:
An example of where this is useful is when an XML element contains some "dictionary" object at the beginning, followed by a sequence of "data" objects which reference the dictionary. For large sequences, combining them to a List (to use with Parser's
and
combiners) is undesireable; we can use this approach to avoid doing so.An intermediate object which has an
apply
andflatMap
that can be used to combine this Parser and a Transformer in a sequence.