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.
[use case] Concatenates this iterator with another.
Concatenates this iterator with another.
Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.
Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.
Appends all elements of this traversable or iterator to a string builder.
Appends all elements of this traversable or iterator to a string builder using a separator string.
Appends all elements of this traversable or 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.
The close() method closes the underlying resource.
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.
Tests whether this iterator contains a given value as an element.
[use case] Copies selected values produced by this iterator to an array.
Copies selected values produced by this iterator to an array.
[use case] Copies values of this traversable or iterator to an array.
Copies values of this traversable or iterator to an array.
[use case] Copies values of this traversable or iterator to an array.
Copies values of this traversable or iterator to an array.
Copies all elements of this traversable or iterator to a buffer.
Counts the number of elements in the traversable or iterator which satisfy a predicate.
Returns a counted iterator from this iterator.
description of this source, default empty
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 elements of this traversable or iterator, going left to right.
Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.
Tests whether a predicate holds for all values produced by this iterator.
[use case] Applies a function f
to all values produced by this iterator.
Applies a function f
to all values produced by this iterator.
convenience method, returns given line (not including newline) from Source.
returns an iterator who returns lines (NOT including newline character(s)).
Returns an iterator which groups this iterator into fixed size blocks.
Tests whether this Iterator has a known size.
Returns true
if this source has more characters.
Returns the index of the first occurrence of the specified object in this iterable object.
Returns the index of the first produced value satisfying a predicate, or -1.
Tests whether this iterator is empty.
Tests whether this Iterator can be repeatedly traversed.
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.
[use case] Finds the largest element.
Finds the largest element.
[use case] Finds the smallest element.
Finds the smallest element.
Displays all elements of this traversable or iterator in a string.
Displays all elements of this traversable or iterator in a string using a separator string.
Displays all elements of this traversable or iterator in a string using start, end, and separator strings.
Returns next character.
Tests whether the traversable or iterator is not empty.
[use case] Appends an element value to this iterator until a given target length is reached.
Appends an element value to this iterator until a given target length is reached.
Partitions this iterator in two iterators according to a predicate.
Returns this iterator with patched values.
[use case] Multiplies up the elements of this collection.
Multiplies up the elements of this collection.
Fills the given array xs
with the elements of
this sequence starting at position start
.
Applies a binary operator to all elements of this traversable or iterator, going left to right.
Optionally applies a binary operator to all elements of this traversable or iterator, going left to right.
Applies a binary operator to all elements of this traversable or iterator, going right to left.
Optionally applies a binary operator to all elements of this traversable or iterator, going right to left.
no summary matey
Reports an error message to the output stream out
.
no summary matey
The reset() method creates a fresh copy of this Source.
Tests if another iterator produces the same values as this one.
The size of this traversable or iterator.
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.
[use case] Sums up the elements of this collection.
Sums up the elements of this collection.
Selects first n values of this iterator.
Takes longest prefix of values produced by this iterator that satisfy a predicate.
[use case] Converts this traversable or iterator to an array.
Converts this traversable or iterator to an array.
Converts this traversable or iterator to a mutable buffer.
Converts this traversable or iterator to an indexed sequence.
Converts this traversable or iterator to an iterable collection.
Returns an Iterator over the elements in this traversable or iterator.
Converts this traversable or iterator to a list.
Converts this traversable or iterator to a map.
Converts this traversable or iterator to a sequence.
Converts this traversable or iterator to a set.
Converts this traversable or iterator to a stream.
Converts this iterator to a string.
Converts this traversable or iterator to an unspecified Traversable.
Creates an iterator over all the elements of this iterator that
satisfy the predicate p
.
Creates an iterator formed from this iterator and another iterator by combining corresponding values in pairs.
[use case] Creates an iterator formed from this iterator and another iterator by combining corresponding elements 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.
The class
Source
implements an iterable representation of source data. Calling methodreset
returns an identical, resetted source, where possible.version
1.0
authors:
Burak Emir