spliterator() in Java code example
Example: what's a spliterator in java
public interface Spliterator<T>
An object for traversing and partitioning elements of a source. The source of elements covered by a Spliterator could be, for example, an array, a Collection, an IO channel, or a generator function.
A Spliterator may traverse elements individually (tryAdvance()) or sequentially in bulk (forEachRemaining()).