each_chunk


Description:

public virtual bool each_chunk (EachChunkFunc<G> f) throws Error

Applies the given function to each chunk of the remaining elements, until last chunk or function returns false.

The function is performed in encounter order, if the data source has an encounter order.

The chunks given to the function are always non-empty.

This method would be more optimized than manual try_advance calls.

Returns:

false if the argument returned false at last invocation and true otherwise.