> An iterable type is obtained by defining start, next and end methods for > such a type. > Is there a way to obtain the list of all functions that work on iterable > types?
No, that is not possible at the moment. Interfaces/traits are implicit in Julia (for now) and it is not (easily) possible to make dispatch work on them. See: https://github.com/JuliaLang/julia/issues/6975 https://github.com/mauro3/Traits.jl > I can see that there are some functions listed under the Iteration section > but it does not seem to be the full story. > For example mapreduce works on iterable types (nice) but it seems that the > length function is not defined on iterables. Why is it so? Iterables can be of infinite length. For an infinite one a `length` function would just hang. Thus it is probably not a good idea.
