try_advance


Description:

public abstract bool try_advance (Func<G> consumer) throws Error

If a remaining element exists, performs the given consumer function on it, advances to the next element if remaining, and returns true. otherwise returns false.

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

Returns:

false if no remaining elements existed, true otherwise.