You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dselivanov I have thought about creating a hasNext that is similar to itertools::ihasNext(). The implementation in itertools goes against the concept of an iterator because it maintains state. While it may be useful for some use cases, I am not fond of the caching it performs when determining whether another element is available. For a large cached chunk, say, a large data.frame queried from a database, the cache may be excessively large in terms of memory.
It may be possible though to implement such an approach with itertools2::itee. I'd be open to a PR with a suggested implementation.
Do you have plans to implement
hasNext
method (similar toitertools::hasNext
)?EDIT: Also
itertools::ihasNext()
is very useful.The text was updated successfully, but these errors were encountered: