`nextind` might be faster here.