I notice when looking at the documentation of the Iterable class
That there is no length method. I was thinking this is probably because an Iterable is not guaranteed to have finite length. However, it does have a count method.
So I can easily use it.count(a=>true)
What is the rational for not having a length function, but having a count function? Isn’t this inconsistent?