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
{{ message }}
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
I'm curious why an iterator that already knows the number of iterations still returns Iterator and not IterableIterator, as in Set.keys(). Additionally, I believe it would be more obvious to cast reduce on IterableIterator instead of Iterator.
Although using array methods such as reduce on IterableIterator would mean implementing reduce (and probably others) there instead, I still think it's a better solution than recreating the same features for each new proposal.
What are your thoughts?
The text was updated successfully, but these errors were encountered:
The
README.md
mentions that abstractnaturals().take()
returnsIterator
I'm curious why an iterator that already knows the number of iterations still returns
Iterator
and notIterableIterator
, as inSet.keys()
. Additionally, I believe it would be more obvious to castreduce
onIterableIterator
instead ofIterator
.Although using array methods such as
reduce
onIterableIterator
would mean implementingreduce
(and probably others) there instead, I still think it's a better solution than recreating the same features for each new proposal.What are your thoughts?
The text was updated successfully, but these errors were encountered: