> On 6 Apr 2017, at 14:08, Daniel Fuchs <daniel.fu...@oracle.com> wrote:
> 
> Return is needed here because 1. we are removing something from the
> list, so after that the next values of 'i' will be invalid, and 2.

Yeah, that would be my second question :-) But you explained the purpose,
so no problem here. Thanks. 

Though it indeed jumps out on you. Could we use an iterator here and rely
on its remove implementation, since we know the implementation of the list?

Reply via email to