3 ms·
I don't see why you'd want to manipulate iterators by hand, unless you're implementing custom iterators. But, in any case: try!(iter.next().ok_or("end of s
by catnaroek 10y ago
I don't see why you'd want to manipulate iterators by hand, unless you're implementing custom iterators. But, in any case:
try!(iter.next().ok_or("end of sequence"))
EDIT: Sorry. I was just being dense.