Recently, I am interested about the two functions enumerate(iter) and
zip(iter).  So I read the iterator.jl and find they are realized by
different Types.  I thought the enumerate was an alias like
zip([1:length(a)], a), however it is not.

I am curious that why the two functions are realized by two different
types. What difference between the type Zip2 and Enumerate do make the
design an advantage?

Thank you.

Regards,
Jinxuan Zhu([email protected])

Reply via email to