scala.xml.pull.ProducerConsumerIterator
A flexible iterator for transforming an Iterator[A]
into an
Iterator[Seq[A]], with configurable sequence size, step, and
strategy for dealing with elements which don't fit evenly
Concatenates this iterator with another
Applies a binary operator to a start value and all values produced by this iterator, going left to right
Applies a binary operator to all values produced by this iterator and a start value, going right to left
Appends all values produced by this iterator to a string builder
Appends all values produced by this iterator to a string builder using a separator string
Appends all values produced by this iterator to a string builder using start, end, and separator strings
Returns a new iterator that first yields the elements of this
iterator followed by the elements provided by iterator that
Creates a buffered iterator from this iterator
Collect elements into a seq
Tests whether this iterator contains a given value as an element
Copies values produced by this iterator to an array
Copies values produced by this iterator to an array
Copies selected values produced by this iterator to an array
Copies all values produced by this iterator to a buffer
Returns a counted iterator from this iterator
Advances this iterator past the first n elements, or the length of the iterator, whichever is smaller
Skips longest sequence of elements of this iterator which satisfy given
predicate p
, and returns an iterator of the remaining elements
Creates two new iterators that both iterate over the same elements as this iterator (in the same order)
Tests whether a predicate holds for some of the values produced by this iterator
Returns an iterator over all the elements of this iterator that
satisfy the predicate p
Creates an iterator over all the elements of this iterator which do not satisfy a predicate p
Finds the first value produced by the iterator satisfying a predicate, if any
Returns index of the first element satisfying a predicate, or -1
Creates a new iterator by applying a function to all values produced by this iterator and concatenating the results
Applies a binary operator to a start value and all values produced by this iterator, going left to right
Applies a binary operator to all values produced by this iterator and a start value, going right to left
Tests whether a predicate holds for all values produced by this iterator
Applies a function f
to all values produced by this iterator
Returns an iterator which groups this iterator into fixed size blocks
Tests whether this iterator can provide another element
Returns the index of the first occurence of the specified object in this iterable object
Returns the index of the first produced value satisfying a predicate, or -1
Returns the number of elements in this iterator
Creates a new iterator that maps all produced values of this iterator to new values using a transformation function
Displays all values produced by this iterator in a string
Displays all values produced by this iterator in a string using a separator string
Displays all values produced by this iterator in a string using start, end, and separator strings
Produces the next element of this iterator
Appends an element value to this iterator until a given target length is reached
Creates an iterator by transforming values produced by this iterator with a partial function, dropping those values for which the partial function is not defined
Partitions this iterator in two iterators according to a predicate
Returns this iterator with patched values
Fills the given array xs
with the elements of
this sequence starting at position start
Applies a binary operator to all values produced by this iterator, going left to right
Optionally applies a binary operator to all values produced by this iterator, going left to right
Applies a binary operator to all values produced by this iterator, going right to left
Optionally applies a binary operator to all values produced by this iterator, going right to left
Tests if another iterator produces the same valeus as this one
Creates an iterator returning an interval of the values produced by this iterator
Returns an iterator which presents a "sliding window" view of another iterator
Selects first n values of this iterator
Takes longest prefix of values produced by this iterator that satisfy a predicate
Traverses this iterator and returns all produced values in a list
Traverses this iterator and returns all produced values in a sequence
Traverses this iterator and returns all produced values in a list
Converts this iterator to a string
Creates an iterator over all the elements of this iterator that
satisfy the predicate p
Public functions which can be used to configure the iterator before use
Creates an iterator formed from this iterator and another iterator by combining corresponding values in pairs
Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs
Creates an iterator that pairs each element produced by this iterator with its index, counting from 0
A flexible iterator for transforming an
Iterator[A]
into an Iterator[Seq[A]], with configurable sequence size, step, and strategy for dealing with elements which don't fit evenly.Typical uses can be achieved via methods
grouped' and
sliding'.