Base.next?

My code was written with Base.next and now it is not working with 1.0
Where can I learn the latest iterator interface and what I need to change.

Thanks

Docs can be found here.

You’ll want to use iterate instead.

1 Like

Also,

2 Likes

see also: https://julialang.org/blog/2018/07/iterators-in-julia-0.7

Usually you don’t want to explicitly call the next or iterate functions. Just use a for loop instead.

Ah, unless you’re defining an iterable type of course, sorry.

2 Likes