Skip to main content

next_prompt

Function next_prompt 

Source
pub fn next_prompt(state: &mut ChoresState) -> Option<String>
Expand description

Pick the next chore to surface and advance the rotation cursor. Returns None when the list is empty (nothing to nudge). Pure: takes and mutates plain data so the cycling maths is unit-testable without a store.