I would make it clear that the behavior here it to return the current item (the `note_id` and `annotated_id`) and advance to the next value. I know in some languages that pattern is common so there is likely not to be too much confusion, but we should probably be explicit.