Join Slack
Powered by
Any particular reason why `iterator` in `Iterable`...
# language-proposals
i
igor.wojda
12/06/2018, 1:45 PM
Any particular reason why
iterator
in
Iterable
is a method, not a property?
b
Ben Woodworth
01/03/2019, 10:45 AM
A little late, but I think it's because it returns a new iterator instance each time. Being able to do `Iterable.iterator.next()`would be misleading, because it will always return the second iteration.
2
Views
Open in Slack
Previous
Next