pub fn apply_todo_update(
existing: Vec<TodoItem>,
incoming: Vec<TodoItem>,
merge: bool,
) -> Vec<TodoItem>Expand description
Merge incoming items into existing by id (an id written twice keeps
the last). Empty ids always append, under a fresh numeric id so a later
update can reach them. merge: false starts from an empty list.