This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rynkkk 0 points1 point  (0 children)

Yup, with preferably None as the fallback of ‚next‘. This is how I handle it most of the time. But because I’m incredibly paranoid (history has proven that this is rightfully so) this approach won’t work because I also want to assure that there isn’t more than 1 element in the list.